@neo-design/foundations 1.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +18 -0
  3. package/css/alert.css +133 -0
  4. package/css/aspect-ratio.css +32 -0
  5. package/css/badge.css +57 -0
  6. package/css/banner.css +220 -0
  7. package/css/button-icon.css +14 -0
  8. package/css/button.css +174 -0
  9. package/css/checkbox.css +124 -0
  10. package/css/chips-group.css +26 -0
  11. package/css/chips.css +88 -0
  12. package/css/combobox.css +229 -0
  13. package/css/empty-state.css +149 -0
  14. package/css/index.css +36 -0
  15. package/css/link.css +39 -0
  16. package/css/menu.css +112 -0
  17. package/css/modal-dialog.css +204 -0
  18. package/css/modal-fullscreen.css +145 -0
  19. package/css/radio-button.css +132 -0
  20. package/css/select.css +181 -0
  21. package/css/snackbar.css +85 -0
  22. package/css/spinner.css +21 -0
  23. package/css/tabs.css +126 -0
  24. package/css/tag.css +38 -0
  25. package/css/text-field.css +224 -0
  26. package/css/toggle.css +53 -0
  27. package/css/tooltip.css +32 -0
  28. package/icon-aliases.mjs +57 -0
  29. package/icons/README.md +84 -0
  30. package/icons/icons.css +16 -0
  31. package/icons/index.json +843 -0
  32. package/icons/sprite.mjs +2 -0
  33. package/package.json +44 -0
  34. package/tokens/_brand.mjs +3 -0
  35. package/tokens/_primitives.mjs +44 -0
  36. package/tokens/_util.mjs +12 -0
  37. package/tokens/api-js.mjs +11 -0
  38. package/tokens/breakpoints.mjs +8 -0
  39. package/tokens/color-semantic.mjs +47 -0
  40. package/tokens/color.mjs +58 -0
  41. package/tokens/component-tokens.mjs +24 -0
  42. package/tokens/container.mjs +8 -0
  43. package/tokens/iconSize.mjs +18 -0
  44. package/tokens/neo-color.css +97 -0
  45. package/tokens/neo-foundations.css +250 -0
  46. package/tokens/radius.mjs +18 -0
  47. package/tokens/shadows.mjs +14 -0
  48. package/tokens/spacing.mjs +21 -0
  49. package/tokens/stroke.mjs +15 -0
  50. package/tokens/typography.mjs +59 -0
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@neo-design/foundations",
3
+ "version": "1.0.0-rc.4",
4
+ "description": "Neo — the system foundations: semantic tokens in JS and CSS, icons and the plain CSS layer. It does not depend on React or Material UI.",
5
+ "type": "module",
6
+ "sideEffects": [
7
+ "*.css"
8
+ ],
9
+ "exports": {
10
+ "./tokens.css": "./tokens/neo-color.css",
11
+ "./foundations.css": "./tokens/neo-foundations.css",
12
+ "./icons.css": "./icons/icons.css",
13
+ "./sprite": "./icons/sprite.mjs",
14
+ "./icons.json": "./icons/index.json",
15
+ "./css/*": "./css/*",
16
+ "./tokens/api-js.mjs": "./tokens/api-js.mjs",
17
+ "./tokens/breakpoints.mjs": "./tokens/breakpoints.mjs",
18
+ "./tokens/color-semantic.mjs": "./tokens/color-semantic.mjs",
19
+ "./tokens/color.mjs": "./tokens/color.mjs",
20
+ "./tokens/component-tokens.mjs": "./tokens/component-tokens.mjs",
21
+ "./tokens/container.mjs": "./tokens/container.mjs",
22
+ "./tokens/iconSize.mjs": "./tokens/iconSize.mjs",
23
+ "./tokens/radius.mjs": "./tokens/radius.mjs",
24
+ "./tokens/shadows.mjs": "./tokens/shadows.mjs",
25
+ "./tokens/spacing.mjs": "./tokens/spacing.mjs",
26
+ "./tokens/stroke.mjs": "./tokens/stroke.mjs",
27
+ "./tokens/typography.mjs": "./tokens/typography.mjs",
28
+ "./icon-aliases.mjs": "./icon-aliases.mjs",
29
+ "./package.json": "./package.json"
30
+ },
31
+ "files": [
32
+ "tokens",
33
+ "icons",
34
+ "css",
35
+ "icon-aliases.mjs",
36
+ "!icons/svg",
37
+ "!icons/icons.svg",
38
+ "!icons/_demo.html"
39
+ ],
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "license": "MIT"
44
+ }
@@ -0,0 +1,3 @@
1
+ // packages/foundations/tokens/_brand.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ export const P = 'neo';
3
+ export const FILE = 'neo';
@@ -0,0 +1,44 @@
1
+ // packages/foundations/tokens/_primitives.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+
3
+
4
+ export const ramp = {
5
+ slate: { 50: '#F4F7F9', 100: '#E2E9EE', 200: '#BECDD8', 300: '#9BB3C3', 400: '#7A99AD', 500: '#5B7F95', 600: '#45667A', 700: '#304D5F', 800: '#1F3644', 900: '#0F202B' },
6
+ brand: { 50: '#FFF4F3', 100: '#FFE5E3', 200: '#FFC7C3', 300: '#FFA7A3', 400: '#FF8481', 500: '#FF585C', 600: '#D2353F', 700: '#9B1020', 800: '#720012', 900: '#410006' },
7
+ red: { 50: '#FEF2F2', 100: '#FDE0E1', 200: '#F6B4B8', 300: '#EF848B', 400: '#E4515E', 500: '#D62839', 600: '#B71C2C', 700: '#8F1421', 800: '#660D17', 900: '#40060D' },
8
+ green: { 50: '#F3F9F3', 100: '#DBECDC', 200: '#AED2B2', 300: '#7EB986', 400: '#519E5F', 500: '#1E833A', 600: '#006B27', 700: '#00531D', 800: '#003C12', 900: '#002608' },
9
+ yellow: { 50: '#FCF6EF', 100: '#FEECD8', 200: '#FED9AF', 300: '#FFC580', 400: '#FCB150', 500: '#F59E0B', 600: '#BF7900', 700: '#8B5700', 800: '#5A3600', 900: '#2E1900' },
10
+ blue: { 50: '#F3F7FF', 100: '#D6E4FF', 200: '#9EBEFB', 300: '#6797F5', 400: '#366FE5', 500: '#0043CE', 600: '#0036AF', 700: '#002A90', 800: '#001E73', 900: '#001358' },
11
+ gray: { 50: '#F7F7F7', 100: '#E7E7E7', 200: '#C9C9C9', 300: '#ABABAB', 400: '#8F8F8F', 500: '#737373', 600: '#5C5C5C', 700: '#464646', 800: '#313131', 900: '#1E1E1E' },
12
+ aqua: { 50: '#F1F9F7', 100: '#DBF0ED', 200: '#B0DED8', 300: '#81CCC3', 400: '#50B8AE', 500: '#00A499', 600: '#008178', 700: '#006059', 800: '#00413C', 900: '#002421' },
13
+ pink: { 50: '#FCEEF7', 100: '#F8D3EB', 200: '#EFAED8', 300: '#E189C2', 400: '#D265AC', 500: '#C44197', 600: '#A02C77', 700: '#781C58', 800: '#51103A', 900: '#2C071F' },
14
+ purple: { 50: '#F8F5FF', 100: '#ECE4FF', 200: '#D6C1FF', 300: '#C19DFF', 400: '#AD78FB', 500: '#9753ED', 600: '#7B38C9', 700: '#5F20A1', 800: '#430D77', 900: '#2A0050' },
15
+ sky: { 50: '#EDF4FD', 100: '#D1E3FA', 200: '#A5C8F3', 300: '#79AAE7', 400: '#5692DC', 500: '#3077CF', 600: '#235DA4', 700: '#18457C', 800: '#0E2D53', 900: '#06182D' },
16
+ };
17
+
18
+ export const global = { white: '#FFFFFF', black: '#000000', transparent: '#FFFFFF00', overlay: '#00000099', whiteAlpha8: '#FFFFFF14', whiteAlpha16: '#FFFFFF29' };
19
+
20
+ export const type = {
21
+ family: `'Noto Sans', system-ui, sans-serif`,
22
+ weight: { regular: 400, medium: 500, bold: 700 },
23
+ size: { 50: 12, 100: 14, 200: 16, 300: 18, 400: 20, 500: 24, 600: 32, 700: 40, 800: 48, 900: 64 },
24
+ line: { 50: 16, 100: 20, 200: 24, 300: 26, 400: 28, 500: 32, 600: 40, 700: 48, 800: 64, 900: 72 },
25
+ letterSpacing: 0,
26
+ paragraph: { lg: 28, md: 24, sm: 20 },
27
+ };
28
+
29
+ export const space = { none: 0, 50: 4, 100: 8, 150: 12, 200: 16, 250: 20, 300: 24, 400: 32, 500: 40, 600: 48, 700: 56, 800: 64, 900: 72, 1000: 80 };
30
+ export const radius = { 0: 0, 50: 4, 100: 8, 150: 12, 200: 16, 300: 24, 400: 32, 500: 40, full: 999 };
31
+ export const stroke = { 0: 0, 25: 1, 50: 2, 75: 4 };
32
+ export const iconSize = { 200: 16, 250: 20, 300: 24, 400: 32, 500: 40, 600: 48, 700: 56, 800: 64 };
33
+
34
+ export const shadow = {
35
+ 0: '0px 0px 0px 0px transparent',
36
+ 1: '0px 2px 4px 0px rgba(49,49,49,0.08)',
37
+ 2: '0px 4px 12px 0px rgba(49,49,49,0.10)',
38
+ 3: '0px 8px 24px 0px rgba(49,49,49,0.12)',
39
+ 4: '0px -4px 8px 0px rgba(49,49,49,0.10)',
40
+ };
41
+
42
+ export const compat = {
43
+ space: { 6: 6, 18: 18, 28: 28 },
44
+ };
@@ -0,0 +1,12 @@
1
+ // packages/foundations/tokens/_util.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ import { P } from './_brand.mjs';
3
+
4
+ export const REM_BASE = 16;
5
+
6
+ export const rem = (px) => `${+(px / REM_BASE).toFixed(4)}rem`;
7
+
8
+ export const dualPxVars = (group, scale) =>
9
+ Object.fromEntries(Object.entries(scale).flatMap(([k, v]) => [
10
+ [`--${P}-${group}-${k}`, `${v}px`],
11
+ [`--${P}-${group}-${k}-rem`, rem(v)],
12
+ ]));
@@ -0,0 +1,11 @@
1
+ // packages/foundations/tokens/api-js.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ export { tokens as color, cssVar } from './color-semantic.mjs';
3
+
4
+ import { tokens as _tokens, cssVar as _cssVar } from './color-semantic.mjs';
5
+ import { space } from './spacing.mjs';
6
+ import { radius } from './radius.mjs';
7
+ import { stroke } from './stroke.mjs';
8
+ import { iconSize } from './iconSize.mjs';
9
+
10
+ export const colorVars = Object.fromEntries(Object.keys(_tokens).map((k) => [k, `var(${_cssVar(k)})`]));
11
+ export const scale = { space, radius, stroke, iconSize };
@@ -0,0 +1,8 @@
1
+ // packages/foundations/tokens/breakpoints.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ import { dualPxVars } from './_util.mjs';
3
+
4
+ export const breakpoints = { xs: 0, sm: 576, md: 768, lg: 992, xl: 1200, xxl: 1536 };
5
+
6
+ export const themeSlice = { breakpoints: { values: { ...breakpoints } } };
7
+
8
+ export const cssVars = dualPxVars('breakpoint', breakpoints);
@@ -0,0 +1,47 @@
1
+ // packages/foundations/tokens/color-semantic.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ import { ramp, global } from './_primitives.mjs';
3
+
4
+ const W = global.white, TR = global.transparent, WA8 = global.whiteAlpha8, WA16 = global.whiteAlpha16, OV = global.overlay;
5
+ const s = ramp.slate, g = ramp.gray, co = ramp.brand, cr = ramp.red, gr = ramp.green, y = ramp.yellow, b = ramp.blue;
6
+
7
+ export const tokens = {
8
+ 'surface/base/default': W, 'surface/base/secondary': s[50], 'surface/base/inverse': s[900], 'surface/base/overlay': OV,
9
+
10
+ 'fill/base/default': W, 'fill/base/light': g[50], 'fill/base/medium': g[100], 'fill/base/strong': g[500], 'fill/base/disabled': g[50], 'fill/base/transparent': TR, 'fill/base/inverse': s[900],
11
+ 'fill/primary/default': s[800], 'fill/primary/hover': s[700], 'fill/primary/active': s[900],
12
+ 'fill/primary/inverse/default': W, 'fill/primary/inverse/hover': s[50], 'fill/primary/inverse/active': s[100],
13
+ 'fill/secondary/default': s[100], 'fill/secondary/hover': s[200], 'fill/secondary/active': s[300],
14
+ 'fill/secondary/inverse/default': TR, 'fill/secondary/inverse/hover': WA8, 'fill/secondary/inverse/active': WA16,
15
+ 'fill/tertiary/default': TR, 'fill/tertiary/hover': s[50], 'fill/tertiary/active': s[100],
16
+ 'fill/tertiary/inverse/default': TR, 'fill/tertiary/inverse/hover': WA8, 'fill/tertiary/inverse/active': WA16,
17
+ 'fill/brand/primary/default': co[500], 'fill/brand/primary/hover': co[600], 'fill/brand/primary/active': co[700],
18
+ 'fill/brand/secondary/default': co[100], 'fill/brand/secondary/hover': co[200], 'fill/brand/secondary/active': co[300],
19
+ 'fill/brand/tertiary/default': TR, 'fill/brand/tertiary/hover': co[50], 'fill/brand/tertiary/active': co[100],
20
+ 'fill/semantic/info/soft': b[50], 'fill/semantic/info/solid': b[500],
21
+ 'fill/semantic/success/soft': gr[50], 'fill/semantic/success/solid': gr[500],
22
+ 'fill/semantic/warning/soft': y[50], 'fill/semantic/warning/solid': y[600],
23
+ 'fill/semantic/error/soft': cr[50], 'fill/semantic/error/solid': cr[500],
24
+ 'fill/deco/1/soft': ramp.aqua[100], 'fill/deco/1/solid': ramp.aqua[600],
25
+ 'fill/deco/2/soft': ramp.purple[100], 'fill/deco/2/solid': ramp.purple[600],
26
+ 'fill/deco/3/soft': s[100], 'fill/deco/3/solid': s[600],
27
+ 'fill/deco/4/soft': ramp.pink[100], 'fill/deco/4/solid': ramp.pink[500],
28
+ 'fill/deco/5/soft': ramp.sky[100], 'fill/deco/5/solid': ramp.sky[500],
29
+ 'fill/deco/6/soft': co[100], 'fill/deco/6/solid': co[500],
30
+
31
+ 'text/base/default': s[900], 'text/base/secondary': g[600], 'text/base/disabled': g[300], 'text/base/contrast': W,
32
+ 'text/base/brand': co[500], 'text/base/brand-strong': co[700],
33
+ 'text/semantic/info': b[700], 'text/semantic/success': gr[700], 'text/semantic/warning': y[700], 'text/semantic/error': cr[700],
34
+
35
+ 'icon/base/default': s[900], 'icon/base/secondary': g[500], 'icon/base/disabled': g[200], 'icon/base/contrast': W,
36
+ 'icon/base/brand-solid': co[500], 'icon/base/brand-soft': co[200], 'icon/base/brand-strong': co[700],
37
+ 'icon/semantic/info': b[600], 'icon/semantic/success': gr[600], 'icon/semantic/warning': y[600], 'icon/semantic/error': cr[600],
38
+
39
+ 'border/base/default': g[400], 'border/base/secondary': g[100], 'border/base/disabled': g[100], 'border/base/contrast': W, 'border/base/focus': s[900],
40
+ 'border/base/brand': co[500],
41
+ 'border/semantic/info': b[200], 'border/semantic/success': gr[200], 'border/semantic/warning': y[200], 'border/semantic/error-soft': cr[200], 'border/semantic/error-solid': cr[700],
42
+
43
+ 'focus/ring/default': b[500], 'focus/ring/inverse': W, 'focus/gap/default': b[50], 'focus/gap/inverse': s[800],
44
+ };
45
+
46
+ export const cssVar = (name) => '--' + name.split('/').join('--');
47
+ export const cssVars = Object.fromEntries(Object.entries(tokens).map(([n, v]) => [cssVar(n), v]));
@@ -0,0 +1,58 @@
1
+ // packages/foundations/tokens/color.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ import { ramp, global } from './_primitives.mjs';
3
+ import { tokens as T } from './color-semantic.mjs';
4
+
5
+ const W = global.white;
6
+
7
+ export const palette = {
8
+ primary: { main: T['fill/primary/default'], light: T['fill/primary/hover'], dark: T['fill/primary/active'], contrastText: T['text/base/contrast'] },
9
+ secondary: { main: T['fill/secondary/default'], light: T['surface/base/secondary'], dark: T['fill/secondary/active'], contrastText: T['text/base/default'] },
10
+ error: { main: T['fill/semantic/error/solid'], light: T['fill/semantic/error/soft'], dark: T['text/semantic/error'], contrastText: T['text/base/contrast'] },
11
+ warning: { main: T['fill/semantic/warning/solid'], light: T['fill/semantic/warning/soft'], dark: T['text/semantic/warning'], contrastText: T['text/base/default'] },
12
+ info: { main: T['fill/semantic/info/solid'], light: T['fill/semantic/info/soft'], dark: T['text/semantic/info'], contrastText: T['text/base/contrast'] },
13
+ success: { main: T['fill/semantic/success/solid'], light: T['fill/semantic/success/soft'], dark: T['text/semantic/success'], contrastText: T['text/base/contrast'] },
14
+
15
+ text: { primary: T['text/base/default'], secondary: T['text/base/secondary'], disabled: T['text/base/disabled'] },
16
+ background: { default: T['surface/base/default'], paper: T['fill/base/default'] },
17
+ divider: T['border/base/secondary'],
18
+ common: { black: global.black, white: W },
19
+ grey: ramp.gray,
20
+
21
+ action: {
22
+ active: T['icon/base/default'],
23
+ hover: T['fill/tertiary/hover'],
24
+ selected: T['fill/tertiary/active'],
25
+ disabled: T['text/base/disabled'],
26
+ disabledBackground: T['fill/base/disabled'],
27
+ },
28
+ };
29
+
30
+
31
+ palette.brand = { main: T['fill/brand/primary/default'], light: T['fill/brand/secondary/default'], dark: T['fill/brand/primary/active'], contrastText: T['text/base/contrast'], hover: T['fill/brand/primary/hover'], active: T['fill/brand/primary/active'], subtle: T['fill/brand/secondary/default'] };
32
+
33
+ palette.status = {
34
+ error: { bg: T['fill/semantic/error/soft'], text: T['text/semantic/error'], icon: T['icon/semantic/error'], border: T['border/semantic/error-soft'], solid: T['fill/semantic/error/solid'] },
35
+ info: { bg: T['fill/semantic/info/soft'], text: T['text/semantic/info'], icon: T['icon/semantic/info'], border: T['border/semantic/info'], solid: T['fill/semantic/info/solid'] },
36
+ success: { bg: T['fill/semantic/success/soft'], text: T['text/semantic/success'], icon: T['icon/semantic/success'], border: T['border/semantic/success'], solid: T['fill/semantic/success/solid'] },
37
+ warning: { bg: T['fill/semantic/warning/soft'], text: T['text/semantic/warning'], icon: T['icon/semantic/warning'], border: T['border/semantic/warning'], solid: T['fill/semantic/warning/solid'] },
38
+ };
39
+
40
+ palette.deco = {
41
+ 1: { soft: T['fill/deco/1/soft'], solid: T['fill/deco/1/solid'] },
42
+ 2: { soft: T['fill/deco/2/soft'], solid: T['fill/deco/2/solid'] },
43
+ 3: { soft: T['fill/deco/3/soft'], solid: T['fill/deco/3/solid'] },
44
+ 4: { soft: T['fill/deco/4/soft'], solid: T['fill/deco/4/solid'] },
45
+ 5: { soft: T['fill/deco/5/soft'], solid: T['fill/deco/5/solid'] },
46
+ };
47
+
48
+ palette.focus = { ring: T['focus/ring/default'], gap: T['focus/gap/default'], inverse: T['focus/ring/inverse'], gapInverse: T['focus/gap/inverse'] };
49
+
50
+ palette.border = { default: T['border/base/default'], focus: T['border/base/focus'], disabled: T['border/base/disabled'], secondary: T['border/base/secondary'], brand: T['border/base/brand'], inverse: T['border/base/contrast'], errorSolid: T['border/semantic/error-solid'] };
51
+
52
+ palette.icon = { default: T['icon/base/default'], secondary: T['icon/base/secondary'], disabled: T['icon/base/disabled'], inverse: T['icon/base/contrast'], brand: T['icon/base/brand-solid'], brandSoft: T['icon/base/brand-soft'] };
53
+
54
+ palette.text.inverse = T['text/base/contrast'];
55
+ palette.text.brand = T['text/base/brand'];
56
+ palette.background.inverse = T['surface/base/inverse'];
57
+
58
+ export const themeSlice = { palette };
@@ -0,0 +1,24 @@
1
+ // packages/foundations/tokens/component-tokens.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ import { rem } from './_util.mjs';
3
+ import { P } from './_brand.mjs';
4
+
5
+ export const component = {
6
+ button: { height: { sm: 32, md: 40, lg: 48 } },
7
+ switch: { width: 48, height: 44, trackHeight: 24, thumbTravel: 24 },
8
+ input: { height: 44 },
9
+ radio: { dot: 10 },
10
+ menu: { minWidth: 200 },
11
+ menuItem: { minHeight: 40 },
12
+ };
13
+
14
+ export const themeSlice = { neo: { component } };
15
+
16
+ const kebab = (s) => s.replace(/([A-Z])/g, '-$1').toLowerCase();
17
+ const flat = [];
18
+ const walk = (obj, path) => { for (const [k, v] of Object.entries(obj)) { const p = [...path, kebab(k)]; typeof v === 'object' ? walk(v, p) : flat.push([p.join('-'), v]); } };
19
+ walk(component, []);
20
+
21
+ export const cssVars = Object.fromEntries(flat.flatMap(([name, v]) => [
22
+ [`--${P}-${name}`, `${v}px`],
23
+ [`--${P}-${name}-rem`, rem(v)],
24
+ ]));
@@ -0,0 +1,8 @@
1
+ // packages/foundations/tokens/container.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ import { dualPxVars } from './_util.mjs';
3
+
4
+ export const container = { content: 1180, wide: 1320 };
5
+
6
+ export const themeSlice = { neo: { container: { ...container } } };
7
+
8
+ export const cssVars = dualPxVars('container', container);
@@ -0,0 +1,18 @@
1
+ // packages/foundations/tokens/iconSize.mjs — emitted without comments. The reasoning behind each decision lives in Neo's source repository.
2
+ import { iconSize as P } from './_primitives.mjs';
3
+ import { dualPxVars } from './_util.mjs';
4
+
5
+ export const iconSize = {
6
+ xs: P[200],
7
+ sm: P[250],
8
+ md: P[300],
9
+ lg: P[400],
10
+ xl: P[500],
11
+ '2xl': P[600],
12
+ '3xl': P[700],
13
+ '4xl': P[800],
14
+ };
15
+
16
+ export const themeSlice = { neo: { iconSize } };
17
+
18
+ export const cssVars = dualPxVars('icon-size', iconSize);
@@ -0,0 +1,97 @@
1
+ /* packages/foundations/tokens/neo-color.css — emitted without comments. The reasoning behind each decision lives in Neo's source repository. */
2
+ :root {
3
+ --surface--base--default: #FFFFFF;
4
+ --surface--base--secondary: #F4F7F9;
5
+ --surface--base--inverse: #0F202B;
6
+ --surface--base--overlay: #00000099;
7
+ --fill--base--default: #FFFFFF;
8
+ --fill--base--light: #F7F7F7;
9
+ --fill--base--medium: #E7E7E7;
10
+ --fill--base--strong: #737373;
11
+ --fill--base--disabled: #F7F7F7;
12
+ --fill--base--transparent: #FFFFFF00;
13
+ --fill--base--inverse: #0F202B;
14
+ --fill--primary--default: #1F3644;
15
+ --fill--primary--hover: #304D5F;
16
+ --fill--primary--active: #0F202B;
17
+ --fill--primary--inverse--default: #FFFFFF;
18
+ --fill--primary--inverse--hover: #F4F7F9;
19
+ --fill--primary--inverse--active: #E2E9EE;
20
+ --fill--secondary--default: #E2E9EE;
21
+ --fill--secondary--hover: #BECDD8;
22
+ --fill--secondary--active: #9BB3C3;
23
+ --fill--secondary--inverse--default: #FFFFFF00;
24
+ --fill--secondary--inverse--hover: #FFFFFF14;
25
+ --fill--secondary--inverse--active: #FFFFFF29;
26
+ --fill--tertiary--default: #FFFFFF00;
27
+ --fill--tertiary--hover: #F4F7F9;
28
+ --fill--tertiary--active: #E2E9EE;
29
+ --fill--tertiary--inverse--default: #FFFFFF00;
30
+ --fill--tertiary--inverse--hover: #FFFFFF14;
31
+ --fill--tertiary--inverse--active: #FFFFFF29;
32
+ --fill--brand--primary--default: #FF585C;
33
+ --fill--brand--primary--hover: #D2353F;
34
+ --fill--brand--primary--active: #9B1020;
35
+ --fill--brand--secondary--default: #FFE5E3;
36
+ --fill--brand--secondary--hover: #FFC7C3;
37
+ --fill--brand--secondary--active: #FFA7A3;
38
+ --fill--brand--tertiary--default: #FFFFFF00;
39
+ --fill--brand--tertiary--hover: #FFF4F3;
40
+ --fill--brand--tertiary--active: #FFE5E3;
41
+ --fill--semantic--info--soft: #F3F7FF;
42
+ --fill--semantic--info--solid: #0043CE;
43
+ --fill--semantic--success--soft: #F3F9F3;
44
+ --fill--semantic--success--solid: #1E833A;
45
+ --fill--semantic--warning--soft: #FCF6EF;
46
+ --fill--semantic--warning--solid: #BF7900;
47
+ --fill--semantic--error--soft: #FEF2F2;
48
+ --fill--semantic--error--solid: #D62839;
49
+ --fill--deco--1--soft: #DBF0ED;
50
+ --fill--deco--1--solid: #008178;
51
+ --fill--deco--2--soft: #ECE4FF;
52
+ --fill--deco--2--solid: #7B38C9;
53
+ --fill--deco--3--soft: #E2E9EE;
54
+ --fill--deco--3--solid: #45667A;
55
+ --fill--deco--4--soft: #F8D3EB;
56
+ --fill--deco--4--solid: #C44197;
57
+ --fill--deco--5--soft: #D1E3FA;
58
+ --fill--deco--5--solid: #3077CF;
59
+ --fill--deco--6--soft: #FFE5E3;
60
+ --fill--deco--6--solid: #FF585C;
61
+ --text--base--default: #0F202B;
62
+ --text--base--secondary: #5C5C5C;
63
+ --text--base--disabled: #ABABAB;
64
+ --text--base--contrast: #FFFFFF;
65
+ --text--base--brand: #FF585C;
66
+ --text--base--brand-strong: #9B1020;
67
+ --text--semantic--info: #002A90;
68
+ --text--semantic--success: #00531D;
69
+ --text--semantic--warning: #8B5700;
70
+ --text--semantic--error: #8F1421;
71
+ --icon--base--default: #0F202B;
72
+ --icon--base--secondary: #737373;
73
+ --icon--base--disabled: #C9C9C9;
74
+ --icon--base--contrast: #FFFFFF;
75
+ --icon--base--brand-solid: #FF585C;
76
+ --icon--base--brand-soft: #FFC7C3;
77
+ --icon--base--brand-strong: #9B1020;
78
+ --icon--semantic--info: #0036AF;
79
+ --icon--semantic--success: #006B27;
80
+ --icon--semantic--warning: #BF7900;
81
+ --icon--semantic--error: #B71C2C;
82
+ --border--base--default: #8F8F8F;
83
+ --border--base--secondary: #E7E7E7;
84
+ --border--base--disabled: #E7E7E7;
85
+ --border--base--contrast: #FFFFFF;
86
+ --border--base--focus: #0F202B;
87
+ --border--base--brand: #FF585C;
88
+ --border--semantic--info: #9EBEFB;
89
+ --border--semantic--success: #AED2B2;
90
+ --border--semantic--warning: #FED9AF;
91
+ --border--semantic--error-soft: #F6B4B8;
92
+ --border--semantic--error-solid: #8F1421;
93
+ --focus--ring--default: #0043CE;
94
+ --focus--ring--inverse: #FFFFFF;
95
+ --focus--gap--default: #F3F7FF;
96
+ --focus--gap--inverse: #1F3644;
97
+ }
@@ -0,0 +1,250 @@
1
+ /* packages/foundations/tokens/neo-foundations.css — emitted without comments. The reasoning behind each decision lives in Neo's source repository. */
2
+ :root {
3
+ --neo-breakpoint-xs: 0px;
4
+ --neo-breakpoint-xs-rem: 0rem;
5
+ --neo-breakpoint-sm: 576px;
6
+ --neo-breakpoint-sm-rem: 36rem;
7
+ --neo-breakpoint-md: 768px;
8
+ --neo-breakpoint-md-rem: 48rem;
9
+ --neo-breakpoint-lg: 992px;
10
+ --neo-breakpoint-lg-rem: 62rem;
11
+ --neo-breakpoint-xl: 1200px;
12
+ --neo-breakpoint-xl-rem: 75rem;
13
+ --neo-breakpoint-xxl: 1536px;
14
+ --neo-breakpoint-xxl-rem: 96rem;
15
+
16
+ --neo-space-none: 0px;
17
+ --neo-space-none-rem: 0rem;
18
+ --neo-space-xs: 4px;
19
+ --neo-space-xs-rem: 0.25rem;
20
+ --neo-space-sm: 8px;
21
+ --neo-space-sm-rem: 0.5rem;
22
+ --neo-space-md: 12px;
23
+ --neo-space-md-rem: 0.75rem;
24
+ --neo-space-lg: 16px;
25
+ --neo-space-lg-rem: 1rem;
26
+ --neo-space-xl: 24px;
27
+ --neo-space-xl-rem: 1.5rem;
28
+ --neo-space-2xl: 32px;
29
+ --neo-space-2xl-rem: 2rem;
30
+ --neo-space-3xl: 48px;
31
+ --neo-space-3xl-rem: 3rem;
32
+ --neo-space-4xl: 64px;
33
+ --neo-space-4xl-rem: 4rem;
34
+ --neo-space-5xl: 72px;
35
+ --neo-space-5xl-rem: 4.5rem;
36
+ --neo-space-6xl: 80px;
37
+ --neo-space-6xl-rem: 5rem;
38
+
39
+ --neo-radius-none: 0px;
40
+ --neo-radius-none-rem: 0rem;
41
+ --neo-radius-xs: 4px;
42
+ --neo-radius-xs-rem: 0.25rem;
43
+ --neo-radius-sm: 8px;
44
+ --neo-radius-sm-rem: 0.5rem;
45
+ --neo-radius-md: 12px;
46
+ --neo-radius-md-rem: 0.75rem;
47
+ --neo-radius-lg: 16px;
48
+ --neo-radius-lg-rem: 1rem;
49
+ --neo-radius-xl: 24px;
50
+ --neo-radius-xl-rem: 1.5rem;
51
+ --neo-radius-2xl: 32px;
52
+ --neo-radius-2xl-rem: 2rem;
53
+ --neo-radius-pill: 999px;
54
+ --neo-radius-pill-rem: 62.4375rem;
55
+
56
+ --neo-stroke-none: 0px;
57
+ --neo-stroke-none-rem: 0rem;
58
+ --neo-stroke-xs: 1px;
59
+ --neo-stroke-xs-rem: 0.0625rem;
60
+ --neo-stroke-sm: 2px;
61
+ --neo-stroke-sm-rem: 0.125rem;
62
+ --neo-stroke-md: 4px;
63
+ --neo-stroke-md-rem: 0.25rem;
64
+ --neo-stroke-focus-ring-width: 2px;
65
+ --neo-stroke-focus-ring-width-rem: 0.125rem;
66
+
67
+ --neo-icon-size-xs: 16px;
68
+ --neo-icon-size-xs-rem: 1rem;
69
+ --neo-icon-size-sm: 20px;
70
+ --neo-icon-size-sm-rem: 1.25rem;
71
+ --neo-icon-size-md: 24px;
72
+ --neo-icon-size-md-rem: 1.5rem;
73
+ --neo-icon-size-lg: 32px;
74
+ --neo-icon-size-lg-rem: 2rem;
75
+ --neo-icon-size-xl: 40px;
76
+ --neo-icon-size-xl-rem: 2.5rem;
77
+ --neo-icon-size-2xl: 48px;
78
+ --neo-icon-size-2xl-rem: 3rem;
79
+ --neo-icon-size-3xl: 56px;
80
+ --neo-icon-size-3xl-rem: 3.5rem;
81
+ --neo-icon-size-4xl: 64px;
82
+ --neo-icon-size-4xl-rem: 4rem;
83
+
84
+ --neo-elevation-none: 0px 0px 0px 0px transparent;
85
+ --neo-elevation-sm: 0px 2px 4px 0px rgba(49,49,49,0.08);
86
+ --neo-elevation-md: 0px 4px 12px 0px rgba(49,49,49,0.10);
87
+ --neo-elevation-lg: 0px 8px 24px 0px rgba(49,49,49,0.12);
88
+ --neo-elevation-top-md: 0px -4px 8px 0px rgba(49,49,49,0.10);
89
+
90
+ --neo-type-display-xl-bold-size: 64px;
91
+ --neo-type-display-xl-bold-size-rem: 4rem;
92
+ --neo-type-display-xl-bold-weight: 700;
93
+ --neo-type-display-xl-bold-line-height: 72px;
94
+ --neo-type-display-xl-bold-line-height-rem: 4.5rem;
95
+ --neo-type-display-xl-bold-letter-spacing: 0;
96
+ --neo-type-headline-lg-bold-size: 48px;
97
+ --neo-type-headline-lg-bold-size-rem: 3rem;
98
+ --neo-type-headline-lg-bold-weight: 700;
99
+ --neo-type-headline-lg-bold-line-height: 64px;
100
+ --neo-type-headline-lg-bold-line-height-rem: 4rem;
101
+ --neo-type-headline-lg-bold-letter-spacing: 0;
102
+ --neo-type-headline-md-bold-size: 40px;
103
+ --neo-type-headline-md-bold-size-rem: 2.5rem;
104
+ --neo-type-headline-md-bold-weight: 700;
105
+ --neo-type-headline-md-bold-line-height: 48px;
106
+ --neo-type-headline-md-bold-line-height-rem: 3rem;
107
+ --neo-type-headline-md-bold-letter-spacing: 0;
108
+ --neo-type-headline-sm-bold-size: 32px;
109
+ --neo-type-headline-sm-bold-size-rem: 2rem;
110
+ --neo-type-headline-sm-bold-weight: 700;
111
+ --neo-type-headline-sm-bold-line-height: 40px;
112
+ --neo-type-headline-sm-bold-line-height-rem: 2.5rem;
113
+ --neo-type-headline-sm-bold-letter-spacing: 0;
114
+ --neo-type-title-lg-bold-size: 24px;
115
+ --neo-type-title-lg-bold-size-rem: 1.5rem;
116
+ --neo-type-title-lg-bold-weight: 700;
117
+ --neo-type-title-lg-bold-line-height: 32px;
118
+ --neo-type-title-lg-bold-line-height-rem: 2rem;
119
+ --neo-type-title-lg-bold-letter-spacing: 0;
120
+ --neo-type-title-lg-medium-size: 24px;
121
+ --neo-type-title-lg-medium-size-rem: 1.5rem;
122
+ --neo-type-title-lg-medium-weight: 500;
123
+ --neo-type-title-lg-medium-line-height: 32px;
124
+ --neo-type-title-lg-medium-line-height-rem: 2rem;
125
+ --neo-type-title-lg-medium-letter-spacing: 0;
126
+ --neo-type-title-md-bold-size: 20px;
127
+ --neo-type-title-md-bold-size-rem: 1.25rem;
128
+ --neo-type-title-md-bold-weight: 700;
129
+ --neo-type-title-md-bold-line-height: 28px;
130
+ --neo-type-title-md-bold-line-height-rem: 1.75rem;
131
+ --neo-type-title-md-bold-letter-spacing: 0;
132
+ --neo-type-title-md-medium-size: 20px;
133
+ --neo-type-title-md-medium-size-rem: 1.25rem;
134
+ --neo-type-title-md-medium-weight: 500;
135
+ --neo-type-title-md-medium-line-height: 28px;
136
+ --neo-type-title-md-medium-line-height-rem: 1.75rem;
137
+ --neo-type-title-md-medium-letter-spacing: 0;
138
+ --neo-type-title-sm-bold-size: 18px;
139
+ --neo-type-title-sm-bold-size-rem: 1.125rem;
140
+ --neo-type-title-sm-bold-weight: 700;
141
+ --neo-type-title-sm-bold-line-height: 26px;
142
+ --neo-type-title-sm-bold-line-height-rem: 1.625rem;
143
+ --neo-type-title-sm-bold-letter-spacing: 0;
144
+ --neo-type-title-sm-medium-size: 18px;
145
+ --neo-type-title-sm-medium-size-rem: 1.125rem;
146
+ --neo-type-title-sm-medium-weight: 500;
147
+ --neo-type-title-sm-medium-line-height: 26px;
148
+ --neo-type-title-sm-medium-line-height-rem: 1.625rem;
149
+ --neo-type-title-sm-medium-letter-spacing: 0;
150
+ --neo-type-title-xs-bold-size: 14px;
151
+ --neo-type-title-xs-bold-size-rem: 0.875rem;
152
+ --neo-type-title-xs-bold-weight: 700;
153
+ --neo-type-title-xs-bold-line-height: 20px;
154
+ --neo-type-title-xs-bold-line-height-rem: 1.25rem;
155
+ --neo-type-title-xs-bold-letter-spacing: 0;
156
+ --neo-type-body-xl-bold-size: 20px;
157
+ --neo-type-body-xl-bold-size-rem: 1.25rem;
158
+ --neo-type-body-xl-bold-weight: 700;
159
+ --neo-type-body-xl-bold-line-height: 28px;
160
+ --neo-type-body-xl-bold-line-height-rem: 1.75rem;
161
+ --neo-type-body-xl-bold-letter-spacing: 0;
162
+ --neo-type-body-xl-medium-size: 20px;
163
+ --neo-type-body-xl-medium-size-rem: 1.25rem;
164
+ --neo-type-body-xl-medium-weight: 500;
165
+ --neo-type-body-xl-medium-line-height: 28px;
166
+ --neo-type-body-xl-medium-line-height-rem: 1.75rem;
167
+ --neo-type-body-xl-medium-letter-spacing: 0;
168
+ --neo-type-body-xl-regular-size: 20px;
169
+ --neo-type-body-xl-regular-size-rem: 1.25rem;
170
+ --neo-type-body-xl-regular-weight: 400;
171
+ --neo-type-body-xl-regular-line-height: 28px;
172
+ --neo-type-body-xl-regular-line-height-rem: 1.75rem;
173
+ --neo-type-body-xl-regular-letter-spacing: 0;
174
+ --neo-type-body-lg-bold-size: 16px;
175
+ --neo-type-body-lg-bold-size-rem: 1rem;
176
+ --neo-type-body-lg-bold-weight: 700;
177
+ --neo-type-body-lg-bold-line-height: 24px;
178
+ --neo-type-body-lg-bold-line-height-rem: 1.5rem;
179
+ --neo-type-body-lg-bold-letter-spacing: 0;
180
+ --neo-type-body-lg-medium-size: 16px;
181
+ --neo-type-body-lg-medium-size-rem: 1rem;
182
+ --neo-type-body-lg-medium-weight: 500;
183
+ --neo-type-body-lg-medium-line-height: 24px;
184
+ --neo-type-body-lg-medium-line-height-rem: 1.5rem;
185
+ --neo-type-body-lg-medium-letter-spacing: 0;
186
+ --neo-type-body-lg-regular-size: 16px;
187
+ --neo-type-body-lg-regular-size-rem: 1rem;
188
+ --neo-type-body-lg-regular-weight: 400;
189
+ --neo-type-body-lg-regular-line-height: 24px;
190
+ --neo-type-body-lg-regular-line-height-rem: 1.5rem;
191
+ --neo-type-body-lg-regular-letter-spacing: 0;
192
+ --neo-type-body-md-bold-size: 14px;
193
+ --neo-type-body-md-bold-size-rem: 0.875rem;
194
+ --neo-type-body-md-bold-weight: 700;
195
+ --neo-type-body-md-bold-line-height: 20px;
196
+ --neo-type-body-md-bold-line-height-rem: 1.25rem;
197
+ --neo-type-body-md-bold-letter-spacing: 0;
198
+ --neo-type-body-md-medium-size: 14px;
199
+ --neo-type-body-md-medium-size-rem: 0.875rem;
200
+ --neo-type-body-md-medium-weight: 500;
201
+ --neo-type-body-md-medium-line-height: 20px;
202
+ --neo-type-body-md-medium-line-height-rem: 1.25rem;
203
+ --neo-type-body-md-medium-letter-spacing: 0;
204
+ --neo-type-body-md-regular-size: 14px;
205
+ --neo-type-body-md-regular-size-rem: 0.875rem;
206
+ --neo-type-body-md-regular-weight: 400;
207
+ --neo-type-body-md-regular-line-height: 20px;
208
+ --neo-type-body-md-regular-line-height-rem: 1.25rem;
209
+ --neo-type-body-md-regular-letter-spacing: 0;
210
+ --neo-type-caption-sm-medium-size: 12px;
211
+ --neo-type-caption-sm-medium-size-rem: 0.75rem;
212
+ --neo-type-caption-sm-medium-weight: 500;
213
+ --neo-type-caption-sm-medium-line-height: 16px;
214
+ --neo-type-caption-sm-medium-line-height-rem: 1rem;
215
+ --neo-type-caption-sm-medium-letter-spacing: 0;
216
+ --neo-type-caption-sm-regular-size: 12px;
217
+ --neo-type-caption-sm-regular-size-rem: 0.75rem;
218
+ --neo-type-caption-sm-regular-weight: 400;
219
+ --neo-type-caption-sm-regular-line-height: 16px;
220
+ --neo-type-caption-sm-regular-line-height-rem: 1rem;
221
+ --neo-type-caption-sm-regular-letter-spacing: 0;
222
+
223
+ --neo-container-content: 1180px;
224
+ --neo-container-content-rem: 73.75rem;
225
+ --neo-container-wide: 1320px;
226
+ --neo-container-wide-rem: 82.5rem;
227
+
228
+ --neo-button-height-sm: 32px;
229
+ --neo-button-height-sm-rem: 2rem;
230
+ --neo-button-height-md: 40px;
231
+ --neo-button-height-md-rem: 2.5rem;
232
+ --neo-button-height-lg: 48px;
233
+ --neo-button-height-lg-rem: 3rem;
234
+ --neo-switch-width: 48px;
235
+ --neo-switch-width-rem: 3rem;
236
+ --neo-switch-height: 44px;
237
+ --neo-switch-height-rem: 2.75rem;
238
+ --neo-switch-track-height: 24px;
239
+ --neo-switch-track-height-rem: 1.5rem;
240
+ --neo-switch-thumb-travel: 24px;
241
+ --neo-switch-thumb-travel-rem: 1.5rem;
242
+ --neo-input-height: 44px;
243
+ --neo-input-height-rem: 2.75rem;
244
+ --neo-radio-dot: 10px;
245
+ --neo-radio-dot-rem: 0.625rem;
246
+ --neo-menu-min-width: 200px;
247
+ --neo-menu-min-width-rem: 12.5rem;
248
+ --neo-menu-item-min-height: 40px;
249
+ --neo-menu-item-min-height-rem: 2.5rem;
250
+ }