- How we build design systems, for all!
Alexander Vassbotn Røyne-Helgesen
@phun-ky | @phun_ky | https://no.linkedin.com/in/alexanderroyne/en | Manager@Bekk
A zero dependency package to show specifications on components in your design system documentation
A tool to visualize design token relations and inheritance
Responsive Documentation Examples (rde) enables you to fake and display your responsive components in real life media queries
With Demo, you can preview and update your component in real time
👋
The most developed design systems are the ideal of what we want our products to be — holistic, systematic and well-documented wonders.
... is a central location to store design related information such as colors, fonts, animations and so on. These raw values can then be transformed and be formatted to fit the needs of any platform.
Serve all
1: We use the $ids-color-blue-100 here
2: Здесь мы используем $ids-color-blue-100
3: Vi bruker $ids-color-blue-100 her
4: Šeit tiek izmantota $ids-color-blue-100
import { DesignToken } from '@microsoft/fast-foundation';
import {IDS_COLOR_BLUE_100} from '@ids-core/color/src/variables/js/variables.js'
export const accentColor = DesignToken.create<string>('accent-color');
const primaryButton = document.querySelector('my-element') as FASTElement;
accentColor.setValueFor(primaryButton, IDS_COLOR_BLUE_100);
import React from 'react';
import {IDS_COLOR_BLUE_100} from '@ids-core/color/src/variables/js/variables.js'
const Button = ({...props}) => (
<button
…
style={{
backgroundColor: IDS_COLOR_BLUE_100
}}
>…</button>
)
@import '@ids-core/color/src/variables/less/variables.less';
a {
color: @ids-color-accent; /* #0054f0 */
}
@import '@ids-core/color/src/variables/scss/variables.scss';
a {
color: $ids-color-accent; /* #0054f0 */
}
@require '@ids-core/color/src/variables/stylus/variables.styl'
a
color $ids-color-accent /* #0054f0 */
{
"ids": {
"copy": {
"personalia": {
"gender": {
"en": {
"value": "gender"
},
"no": {
"value": "kjønn"
},
"sv": {
"value": "kön"
},
"da": {
"value": "køn"
},
"fi": {
"value": "sukupuoli"
},
"et": {
"value": "sugu"
},
"lv": {
"value": "dzimums"
},
"lt": {
"value": "lytis"
},
"ru": {
"value": "пол"
},
"kl": {
"value": ""
}
}
}
}
}
}
A website is not necessarily universally designed, even though it is in line with the current requirements and guidelines
$ratio = 7
getCorrectContrastColor($bgcolor)
if(contrast($bgcolor, $white).ratio > $ratio){
color $white
} else if(contrast($bgcolor, $darkerGrey).ratio > $ratio){
color $darkerGrey
} else {
color $darkerSlate
}
Alexander Vassbotn Røyne-Helgesen
@phun-ky | @phun_ky | https://no.linkedin.com/in/alexanderroyne/en | Manager@Bekk