highsoft-design-tokens
v2.0.0
Published
This package ensures a seamless integration of design principles into your codebase, making your development process more efficient and your end product more cohesive and visually appealing
Downloads
51
Readme
👨🏼🎨 Highsoft Design Tokens
This package provides a comprehensive set of CSS custom properties (variables) derived from our design system, ensuring a seamless integration of design principles into your codebase. This approach makes your development process more efficient and your end product more cohesive and visually appealing.
Figma resources
You can find the design tokens in the following Figma files (you need to be logged in with SSO to access them)
🎨 Color system (Figma) 🔠 Typography (Figma) 🪄 Effects (Figma)
Installation
To install this package, run the following command:
npm install highsoft-design-tokens --save
Using a CSS preprocessor like Sass, or a module bundler like Webpack, you can import the CSS file directly into your CSS/Sass files:
@import "highsoft-design-tokens/dist/css/tokens";
You need to add the --load-path=node_modules
option to your Sass command. This directs Sass to look inside the node_modules directory for any @import statements.
"css-compile": "sass --load-path=node_modules //the rest of your code goes here"
Using CSS Variables
The package contains a set of predefined CSS custom properties encapsulated within the :root
selector. This makes them globally available across your entire application. You can use them in your CSS/Sass files like this:
body {
background-color: var(--primitives-brand-600);
color: var(--primitives-neutral-900);
}
button {
background-color: var(--primitives-success-500);
border-radius: var(--border_radius-size-4);
}
Bugs and feature requests
Please use [GitHub issues] to report bugs or request features. If you have any questions about the tokens, please contact @kennethknudsen
All tokens
Primitives
primitives-neutral-0
:#FFFFFF
primitives-neutral-25
:#F6F6F8
primitives-neutral-50
:#F1F1F3
primitives-neutral-100
:#E3E2E8
primitives-neutral-200
:#C8C7D1
primitives-neutral-300
:#ACABBA
primitives-neutral-400
:#908EA3
primitives-neutral-500
:#75728C
primitives-neutral-600
:#5D5B70
primitives-neutral-700
:#464553
primitives-neutral-800
:#2F2E37
primitives-neutral-900
:#17171B
primitives-neutral-1000
:#000000
primitives-brand-50
:#F6F8FF
primitives-brand-100
:#F0F1FF
primitives-brand-200
:#E1E3FF
primitives-brand-300
:#C3C8FF
primitives-brand-400
:#A5ACFF
primitives-brand-500
:#8791FF
primitives-brand-600
:#6975FF
primitives-brand-700
:#545ECC
primitives-brand-800
:#3F4699
primitives-brand-900
:#2A2F66
primitives-brand-1000
:#151733
primitives-success-50
:#ECFDF5
primitives-success-100
:#D1FAE5
primitives-success-200
:#A7F3D0
primitives-success-300
:#6EE7B7
primitives-success-400
:#34D399
primitives-success-500
:#10B981
primitives-success-600
:#059669
primitives-success-700
:#047857
primitives-success-800
:#065F46
primitives-success-900
:#064E3B
primitives-success-1000
:#033427
primitives-attention-50
:#FFFBEB
primitives-attention-100
:#FEF3C7
primitives-attention-200
:#FDE68A
primitives-attention-300
:#FCD34D
primitives-attention-400
:#FBBF24
primitives-attention-500
:#F59E0B
primitives-attention-600
:#D97706
primitives-attention-700
:#B45309
primitives-attention-800
:#92400E
primitives-attention-900
:#78350F
primitives-attention-1000
:#592507
primitives-danger-50
:#FEF2F2
primitives-danger-100
:#FEE2E2
primitives-danger-200
:#FECACA
primitives-danger-300
:#FCA5A5
primitives-danger-400
:#F87171
primitives-danger-500
:#EF4444
primitives-danger-600
:#DC2626
primitives-danger-700
:#B91C1C
primitives-danger-800
:#991B1B
primitives-danger-900
:#7F1D1D
primitives-danger-1000
:#570D0D
Shadow
shadow-size-50
:0px 0px 1px 0px rgba(0, 0, 0, 0.1), 0px 1px 1px 0px rgba(0, 0, 0, 0.09), 0px 3px 2px 0px rgba(0, 0, 0, 0.05), 0px 6px 2px 0px rgba(0, 0, 0, 0.01)
shadow-size-100
:0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 3px 3px 0px rgba(0, 0, 0, 0.05), 0px 7px 4px 0px rgba(0, 0, 0, 0.03), 0px 13px 5px 0px rgba(0, 0, 0, 0.01)
shadow-size-200
:0px 1px 2px 0px rgba(0, 0, 0, 0.08), 0px 4px 4px 0px rgba(0, 0, 0, 0.07), 0px 10px 6px 0px rgba(0, 0, 0, 0.04), 0px 18px 7px 0px rgba(0, 0, 0, 0.01)
shadow-size-300
:0px 2px 4px 0px rgba(0, 0, 0, 0.08), 0px 7px 7px 0px rgba(0, 0, 0, 0.07), 0px 17px 10px 0px rgba(0, 0, 0, 0.04), 0px 30px 12px 0px rgba(0, 0, 0, 0.01)
Border_radius
border_radius-size-0
:0px
border_radius-size-1
:1px
border_radius-size-2
:2px
border_radius-size-4
:4px
border_radius-size-8
:8px
border_radius-size-16
:16px
border_radius-size-32
:32px
border_radius-size-64
:64px
border_radius-size-128
:128px
border_radius-size-full
:100%
Breakpoint
breakpoint-size-xs
:0px
breakpoint-size-sm
:576px
breakpoint-size-md
:768px
breakpoint-size-lg
:992px
breakpoint-size-xl
:1200px
Margin
margin-size-0
:0px
margin-size-1
:1px
margin-size-2
:2px
margin-size-4
:4px
margin-size-8
:8px
margin-size-16
:16px
margin-size-32
:32px
margin-size-64
:64px
margin-size-128
:128px
margin-size-256
:256px
margin-size-512
:512px
Padding
padding-size-0
:0px
padding-size-1
:1px
padding-size-2
:2px
padding-size-4
:4px
padding-size-8
:8px
padding-size-16
:16px
padding-size-32
:32px
padding-size-64
:64px
padding-size-128
:128px
padding-size-256
:256px
padding-size-512
:512px
Brand_dark
brand_dark-chart-color1
:#8087E8
brand_dark-chart-color2
:#A3EDBA
brand_dark-chart-color3
:#F19E53
brand_dark-chart-color4
:#6699A1
brand_dark-chart-color5
:#E1D369
brand_dark-chart-color6
:#87B4E7
brand_dark-chart-color7
:#DA6D85
brand_dark-chart-color8
:#BBBAC5
brand_dark-background-color
:#1f1836
brand_dark-text-color
:#ffffff
Brand_light
brand_light-chart-color1
:#8087E8
brand_light-chart-color2
:#A3EDBA
brand_light-chart-color3
:#F19E53
brand_light-chart-color4
:#6699A1
brand_light-chart-color5
:#E1D369
brand_light-chart-color6
:#87B4E7
brand_light-chart-color7
:#DA6D85
brand_light-chart-color8
:#BBBAC5
brand_light-background-color
:#f0f0f0
brand_light-text-color
:#2F2B38
Dark_unica
dark_unica-chart-color1
:#2b908f
dark_unica-chart-color2
:#90ee7e
dark_unica-chart-color3
:#f45b5b
dark_unica-chart-color4
:#7798BF
dark_unica-chart-color5
:#aaeeee
dark_unica-chart-color6
:#ff0066
dark_unica-chart-color7
:#eeaaee
dark_unica-chart-color8
:#55BF3B
dark_unica-chart-color9
:#DF5353
dark_unica-chart-color10
:#7798BF
dark_unica-chart-color11
:#aaeeee
dark_unica-background-color
:#2a2a2b
dark_unica-text-color
:#E0E0E3
Default
default-chart-color1
:#2caffe
default-chart-color2
:#544fc5
default-chart-color3
:#00e272
default-chart-color4
:#fe6a35
default-chart-color5
:#6b8abc
default-chart-color6
:#d568fb
default-chart-color7
:#2ee0ca
default-chart-color8
:#fa4b42
default-chart-color9
:#f9c80e
default-chart-color10
:#f9c80e
default-background-color
:#ffffff
default-text-color
:#000000
Grid_light
grid_light-chart-color1
:#7cb5ec
grid_light-chart-color2
:#f7a35c
grid_light-chart-color3
:#90ee7e
grid_light-chart-color4
:#7798BF
grid_light-chart-color5
:#aaeeee
grid_light-chart-color6
:#ff0066
grid_light-chart-color7
:#eeaaee
grid_light-chart-color8
:#55BF3B
grid_light-chart-color9
:#DF5353
grid_light-chart-color10
:#7798BF
grid_light-chart-color11
:#aaeeee
grid_light-background-color
:transparent
grid_light-text-color
:#000000
Sand_signika
sand_signika-chart-color1
:#f45b5b
sand_signika-chart-color2
:#8085e9
sand_signika-chart-color3
:#8d4654
sand_signika-chart-color4
:#7798BF
sand_signika-chart-color5
:#aaeeee
sand_signika-chart-color6
:#ff0066
sand_signika-chart-color7
:#eeaaee
sand_signika-chart-color8
:#55BF3B
sand_signika-chart-color9
:#DF5353
sand_signika-chart-color10
:#7798BF
sand_signika-chart-color11
:#aaeeee
sand_signika-background-color
:transparent
sand_signika-text-color
:#000000
Headings
headings-size-h1
:56px
headings-size-h2
:42px
headings-size-h3
:32px
headings-size-h4
:24px
headings-size-h5
:18px
headings-size-h6
:16px
headings-lineHeight-text
:130%
headings-weight-bold
:700
Typography
typography-size-50
:11px
typography-size-75
:12px
typography-size-100
:14px
typography-size-200
:16px
typography-size-300
:18px
typography-size-400
:20px
typography-size-500
:22px
typography-size-600
:25px
typography-size-700
:28px
typography-size-800
:32px
typography-size-900
:36px
typography-size-1000
:40px
typography-lineHeight-ui
:100%
typography-lineHeight-text
:130%
typography-weight-normal
:400
typography-weight-medium
:500
typography-weight-semi
:600