@nswds/tokens 3.2.0 → 3.4.0
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.
- package/dist/css/border/global.css +6 -0
- package/dist/css/shadow/global.css +12 -0
- package/dist/css/typography/global.css +1 -0
- package/dist/css/typography/semantic.css +56 -0
- package/dist/index.cjs +522 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +396 -0
- package/dist/index.d.ts +396 -0
- package/dist/index.js +522 -90
- package/dist/index.js.map +1 -1
- package/dist/js/border/global.js +6 -0
- package/dist/js/shadow/global.js +16 -0
- package/dist/js/typography/global.js +1 -0
- package/dist/js/typography/semantic.js +72 -0
- package/dist/json/border/global.json +8 -0
- package/dist/json/shadow/global.json +18 -0
- package/dist/json/typography/global.json +2 -1
- package/dist/json/typography/semantic.json +65 -0
- package/dist/less/border/global.less +4 -0
- package/dist/less/shadow/global.less +10 -0
- package/dist/less/typography/global.less +1 -0
- package/dist/less/typography/semantic.less +45 -0
- package/dist/scss/border/global.scss +4 -0
- package/dist/scss/shadow/global.scss +10 -0
- package/dist/scss/typography/global.scss +1 -0
- package/dist/scss/typography/semantic.scss +45 -0
- package/dist/tailwind/border/global.css +6 -0
- package/dist/tailwind/shadow/global.css +12 -0
- package/dist/tailwind/typography/global.css +1 -0
- package/dist/tokens/border.base.json +33 -0
- package/dist/tokens/global/border/canonical.json +33 -0
- package/dist/tokens/global/shadow/canonical.json +286 -0
- package/dist/tokens/global/typography/canonical.json +5 -0
- package/dist/tokens/semantic/typography/canonical.json +103 -0
- package/dist/tokens/typography.base.json +5 -0
- package/dist/ts/border/global.ts +6 -0
- package/dist/ts/shadow/global.ts +16 -0
- package/dist/ts/typography/global.ts +1 -0
- package/dist/ts/typography/semantic.ts +72 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const boxShadow = {
|
|
2
|
+
thin: 'inset 0 0 0 0.0625rem',
|
|
3
|
+
thick: 'inset 0 0 0 0.125rem',
|
|
4
|
+
thicker: 'inset 0 0 0 0.25rem',
|
|
5
|
+
}
|
|
6
|
+
export const shadowColor = {
|
|
7
|
+
5: 'rgb(0 0 0 / 0.05)',
|
|
8
|
+
10: 'rgb(0 0 0 / 0.1)',
|
|
9
|
+
25: 'rgb(0 0 0 / 0.25)',
|
|
10
|
+
}
|
|
11
|
+
export const shadow = {
|
|
12
|
+
sm: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
|
|
13
|
+
md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
|
|
14
|
+
lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
|
|
15
|
+
xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
|
|
16
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export const heading1 = {
|
|
2
|
+
fontFamily:
|
|
3
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
4
|
+
fontSize: '2.25rem',
|
|
5
|
+
fontWeight: 800,
|
|
6
|
+
lineHeight: 1.2,
|
|
7
|
+
letterSpacing: '-0.0125em',
|
|
8
|
+
}
|
|
9
|
+
export const heading2 = {
|
|
10
|
+
fontFamily:
|
|
11
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
12
|
+
fontSize: '1.5rem',
|
|
13
|
+
fontWeight: 700,
|
|
14
|
+
lineHeight: 1.3333333,
|
|
15
|
+
letterSpacing: '0em',
|
|
16
|
+
}
|
|
17
|
+
export const heading3 = {
|
|
18
|
+
fontFamily:
|
|
19
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
20
|
+
fontSize: '1.25rem',
|
|
21
|
+
fontWeight: 600,
|
|
22
|
+
lineHeight: 1.6,
|
|
23
|
+
letterSpacing: '0em',
|
|
24
|
+
}
|
|
25
|
+
export const heading4 = {
|
|
26
|
+
fontFamily:
|
|
27
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
28
|
+
fontSize: '1rem',
|
|
29
|
+
fontWeight: 600,
|
|
30
|
+
lineHeight: 1.5,
|
|
31
|
+
letterSpacing: '0em',
|
|
32
|
+
}
|
|
33
|
+
export const body = {
|
|
34
|
+
fontFamily:
|
|
35
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
36
|
+
fontSize: '1rem',
|
|
37
|
+
fontWeight: 400,
|
|
38
|
+
lineHeight: 1.75,
|
|
39
|
+
letterSpacing: '0em',
|
|
40
|
+
}
|
|
41
|
+
export const bodySm = {
|
|
42
|
+
fontFamily:
|
|
43
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
44
|
+
fontSize: '0.875rem',
|
|
45
|
+
fontWeight: 400,
|
|
46
|
+
lineHeight: 1.75,
|
|
47
|
+
letterSpacing: '0em',
|
|
48
|
+
}
|
|
49
|
+
export const lead = {
|
|
50
|
+
fontFamily:
|
|
51
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
52
|
+
fontSize: '1.25rem',
|
|
53
|
+
fontWeight: 400,
|
|
54
|
+
lineHeight: 1.6,
|
|
55
|
+
letterSpacing: '0em',
|
|
56
|
+
}
|
|
57
|
+
export const caption = {
|
|
58
|
+
fontFamily:
|
|
59
|
+
"'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
60
|
+
fontSize: '0.75rem',
|
|
61
|
+
fontWeight: 400,
|
|
62
|
+
lineHeight: 1.5,
|
|
63
|
+
letterSpacing: '0.025em',
|
|
64
|
+
}
|
|
65
|
+
export const code = {
|
|
66
|
+
fontFamily:
|
|
67
|
+
"'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
|
|
68
|
+
fontSize: '0.875rem',
|
|
69
|
+
fontWeight: 400,
|
|
70
|
+
lineHeight: 1.5,
|
|
71
|
+
letterSpacing: '0em',
|
|
72
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"box-shadow": {
|
|
3
|
+
"box-shadow-thin": "inset 0 0 0 0.0625rem",
|
|
4
|
+
"box-shadow-thick": "inset 0 0 0 0.125rem",
|
|
5
|
+
"box-shadow-thicker": "inset 0 0 0 0.25rem"
|
|
6
|
+
},
|
|
7
|
+
"shadow-color": {
|
|
8
|
+
"shadow-color-5": "rgb(0 0 0 / 0.05)",
|
|
9
|
+
"shadow-color-10": "rgb(0 0 0 / 0.1)",
|
|
10
|
+
"shadow-color-25": "rgb(0 0 0 / 0.25)"
|
|
11
|
+
},
|
|
12
|
+
"shadow": {
|
|
13
|
+
"shadow-sm": "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
14
|
+
"shadow-md": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
15
|
+
"shadow-lg": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
16
|
+
"shadow-xl": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"heading-1": {
|
|
3
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
4
|
+
"fontSize": "2.25rem",
|
|
5
|
+
"fontWeight": 800,
|
|
6
|
+
"lineHeight": 1.2,
|
|
7
|
+
"letterSpacing": "-0.0125em"
|
|
8
|
+
},
|
|
9
|
+
"heading-2": {
|
|
10
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
11
|
+
"fontSize": "1.5rem",
|
|
12
|
+
"fontWeight": 700,
|
|
13
|
+
"lineHeight": 1.3333333,
|
|
14
|
+
"letterSpacing": "0em"
|
|
15
|
+
},
|
|
16
|
+
"heading-3": {
|
|
17
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
18
|
+
"fontSize": "1.25rem",
|
|
19
|
+
"fontWeight": 600,
|
|
20
|
+
"lineHeight": 1.6,
|
|
21
|
+
"letterSpacing": "0em"
|
|
22
|
+
},
|
|
23
|
+
"heading-4": {
|
|
24
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
25
|
+
"fontSize": "1rem",
|
|
26
|
+
"fontWeight": 600,
|
|
27
|
+
"lineHeight": 1.5,
|
|
28
|
+
"letterSpacing": "0em"
|
|
29
|
+
},
|
|
30
|
+
"body": {
|
|
31
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
32
|
+
"fontSize": "1rem",
|
|
33
|
+
"fontWeight": 400,
|
|
34
|
+
"lineHeight": 1.75,
|
|
35
|
+
"letterSpacing": "0em"
|
|
36
|
+
},
|
|
37
|
+
"body-sm": {
|
|
38
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
39
|
+
"fontSize": "0.875rem",
|
|
40
|
+
"fontWeight": 400,
|
|
41
|
+
"lineHeight": 1.75,
|
|
42
|
+
"letterSpacing": "0em"
|
|
43
|
+
},
|
|
44
|
+
"lead": {
|
|
45
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
46
|
+
"fontSize": "1.25rem",
|
|
47
|
+
"fontWeight": 400,
|
|
48
|
+
"lineHeight": 1.6,
|
|
49
|
+
"letterSpacing": "0em"
|
|
50
|
+
},
|
|
51
|
+
"caption": {
|
|
52
|
+
"fontFamily": "'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
53
|
+
"fontSize": "0.75rem",
|
|
54
|
+
"fontWeight": 400,
|
|
55
|
+
"lineHeight": 1.5,
|
|
56
|
+
"letterSpacing": "0.025em"
|
|
57
|
+
},
|
|
58
|
+
"code": {
|
|
59
|
+
"fontFamily": "'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
|
|
60
|
+
"fontSize": "0.875rem",
|
|
61
|
+
"fontWeight": 400,
|
|
62
|
+
"lineHeight": 1.5,
|
|
63
|
+
"letterSpacing": "0em"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
@border-width-thin: 0.0625rem; // Thin border (0.0625rem / 1px at the default root) — hairlines, dividers, and default control borders.
|
|
2
|
+
@border-width-thick: 0.125rem; // Thick border (0.125rem / 2px at the default root) — emphasis borders and selected states.
|
|
3
|
+
@border-width-thicker: 0.25rem; // Thicker border (0.25rem / 4px at the default root) — focus rings and high-emphasis outlines.
|
|
4
|
+
@border-width-default: 0.0625rem; // Default border width — aliases thin so the system-wide default can be retuned in one place.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@box-shadow-thin: inset 0 0 0 0.0625rem; // Thin inset ring (inset 0 0 0 border-width.thin) — border-via-shadow that does not affect layout; renders with currentColor.
|
|
2
|
+
@box-shadow-thick: inset 0 0 0 0.125rem; // Thick inset ring (inset 0 0 0 border-width.thick) — emphasis/selected outline; renders with currentColor.
|
|
3
|
+
@box-shadow-thicker: inset 0 0 0 0.25rem; // Thicker inset ring (inset 0 0 0 border-width.thicker) — focus indication; renders with currentColor.
|
|
4
|
+
@shadow-color-5: rgb(0 0 0 / 0.05); // Shadow black at 5% alpha — the faintest elevation tint. Step name is the alpha percentage.
|
|
5
|
+
@shadow-color-10: rgb(0 0 0 / 0.1); // Shadow black at 10% alpha — the standard elevation tint. Step name is the alpha percentage.
|
|
6
|
+
@shadow-color-25: rgb(0 0 0 / 0.25); // Shadow black at 25% alpha — strong elevation for overlays/modals. Step name is the alpha percentage.
|
|
7
|
+
@shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); // Small elevation — cards and raised controls (Tailwind shadow-sm geometry). DRAFT pending design review.
|
|
8
|
+
@shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); // Medium elevation — dropdowns and popovers (Tailwind shadow-md geometry). DRAFT pending design review.
|
|
9
|
+
@shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); // Large elevation — dialogs and floating panels (Tailwind shadow-lg geometry). DRAFT pending design review.
|
|
10
|
+
@shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); // Extra-large elevation — modals and full overlays (Tailwind shadow-xl geometry). DRAFT pending design review.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
@font-weight-medium: 500; // Medium (500) — subtle emphasis, labels, and navigation.
|
|
20
20
|
@font-weight-semibold: 600; // Semibold (600) — headings and strong emphasis.
|
|
21
21
|
@font-weight-bold: 700; // Bold (700) — highest emphasis; key figures and primary headings.
|
|
22
|
+
@font-weight-extrabold: 800; // Extrabold (800) — hero/display headings (the prose scale uses 800 for h1).
|
|
22
23
|
@line-height-none: 1; // Solid (1) — display headings set at their own size (48/48, 56/56, 64/64 in the prose scale).
|
|
23
24
|
@line-height-tight: 1.2; // Tight (1.2) — large headings (36/30 in the prose scale).
|
|
24
25
|
@line-height-snug: 1.3333333; // Snug (1.3333333) — mid-size headings (32/24, 40/30 in the prose scale).
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@typography-heading-1-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
2
|
+
@typography-heading-1-font-size: 2.25rem;
|
|
3
|
+
@typography-heading-1-font-weight: 800;
|
|
4
|
+
@typography-heading-1-line-height: 1.2;
|
|
5
|
+
@typography-heading-1-letter-spacing: -0.0125em;
|
|
6
|
+
@typography-heading-2-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
7
|
+
@typography-heading-2-font-size: 1.5rem;
|
|
8
|
+
@typography-heading-2-font-weight: 700;
|
|
9
|
+
@typography-heading-2-line-height: 1.3333333;
|
|
10
|
+
@typography-heading-2-letter-spacing: 0em;
|
|
11
|
+
@typography-heading-3-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
12
|
+
@typography-heading-3-font-size: 1.25rem;
|
|
13
|
+
@typography-heading-3-font-weight: 600;
|
|
14
|
+
@typography-heading-3-line-height: 1.6;
|
|
15
|
+
@typography-heading-3-letter-spacing: 0em;
|
|
16
|
+
@typography-heading-4-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
17
|
+
@typography-heading-4-font-size: 1rem;
|
|
18
|
+
@typography-heading-4-font-weight: 600;
|
|
19
|
+
@typography-heading-4-line-height: 1.5;
|
|
20
|
+
@typography-heading-4-letter-spacing: 0em;
|
|
21
|
+
@typography-body-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
22
|
+
@typography-body-font-size: 1rem;
|
|
23
|
+
@typography-body-font-weight: 400;
|
|
24
|
+
@typography-body-line-height: 1.75;
|
|
25
|
+
@typography-body-letter-spacing: 0em;
|
|
26
|
+
@typography-body-sm-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
27
|
+
@typography-body-sm-font-size: 0.875rem;
|
|
28
|
+
@typography-body-sm-font-weight: 400;
|
|
29
|
+
@typography-body-sm-line-height: 1.75;
|
|
30
|
+
@typography-body-sm-letter-spacing: 0em;
|
|
31
|
+
@typography-lead-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
32
|
+
@typography-lead-font-size: 1.25rem;
|
|
33
|
+
@typography-lead-font-weight: 400;
|
|
34
|
+
@typography-lead-line-height: 1.6;
|
|
35
|
+
@typography-lead-letter-spacing: 0em;
|
|
36
|
+
@typography-caption-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
37
|
+
@typography-caption-font-size: 0.75rem;
|
|
38
|
+
@typography-caption-font-weight: 400;
|
|
39
|
+
@typography-caption-line-height: 1.5;
|
|
40
|
+
@typography-caption-letter-spacing: 0.025em;
|
|
41
|
+
@typography-code-font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
|
|
42
|
+
@typography-code-font-size: 0.875rem;
|
|
43
|
+
@typography-code-font-weight: 400;
|
|
44
|
+
@typography-code-line-height: 1.5;
|
|
45
|
+
@typography-code-letter-spacing: 0em;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$border-width-thin: 0.0625rem; // Thin border (0.0625rem / 1px at the default root) — hairlines, dividers, and default control borders.
|
|
2
|
+
$border-width-thick: 0.125rem; // Thick border (0.125rem / 2px at the default root) — emphasis borders and selected states.
|
|
3
|
+
$border-width-thicker: 0.25rem; // Thicker border (0.25rem / 4px at the default root) — focus rings and high-emphasis outlines.
|
|
4
|
+
$border-width-default: 0.0625rem; // Default border width — aliases thin so the system-wide default can be retuned in one place.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
$box-shadow-thin: inset 0 0 0 0.0625rem; // Thin inset ring (inset 0 0 0 border-width.thin) — border-via-shadow that does not affect layout; renders with currentColor.
|
|
2
|
+
$box-shadow-thick: inset 0 0 0 0.125rem; // Thick inset ring (inset 0 0 0 border-width.thick) — emphasis/selected outline; renders with currentColor.
|
|
3
|
+
$box-shadow-thicker: inset 0 0 0 0.25rem; // Thicker inset ring (inset 0 0 0 border-width.thicker) — focus indication; renders with currentColor.
|
|
4
|
+
$shadow-color-5: rgb(0 0 0 / 0.05); // Shadow black at 5% alpha — the faintest elevation tint. Step name is the alpha percentage.
|
|
5
|
+
$shadow-color-10: rgb(0 0 0 / 0.1); // Shadow black at 10% alpha — the standard elevation tint. Step name is the alpha percentage.
|
|
6
|
+
$shadow-color-25: rgb(0 0 0 / 0.25); // Shadow black at 25% alpha — strong elevation for overlays/modals. Step name is the alpha percentage.
|
|
7
|
+
$shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); // Small elevation — cards and raised controls (Tailwind shadow-sm geometry). DRAFT pending design review.
|
|
8
|
+
$shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); // Medium elevation — dropdowns and popovers (Tailwind shadow-md geometry). DRAFT pending design review.
|
|
9
|
+
$shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); // Large elevation — dialogs and floating panels (Tailwind shadow-lg geometry). DRAFT pending design review.
|
|
10
|
+
$shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); // Extra-large elevation — modals and full overlays (Tailwind shadow-xl geometry). DRAFT pending design review.
|
|
@@ -19,6 +19,7 @@ $font-weight-regular: 400; // Regular (400) — default body text weight.
|
|
|
19
19
|
$font-weight-medium: 500; // Medium (500) — subtle emphasis, labels, and navigation.
|
|
20
20
|
$font-weight-semibold: 600; // Semibold (600) — headings and strong emphasis.
|
|
21
21
|
$font-weight-bold: 700; // Bold (700) — highest emphasis; key figures and primary headings.
|
|
22
|
+
$font-weight-extrabold: 800; // Extrabold (800) — hero/display headings (the prose scale uses 800 for h1).
|
|
22
23
|
$line-height-none: 1; // Solid (1) — display headings set at their own size (48/48, 56/56, 64/64 in the prose scale).
|
|
23
24
|
$line-height-tight: 1.2; // Tight (1.2) — large headings (36/30 in the prose scale).
|
|
24
25
|
$line-height-snug: 1.3333333; // Snug (1.3333333) — mid-size headings (32/24, 40/30 in the prose scale).
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
$typography-heading-1-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
2
|
+
$typography-heading-1-font-size: 2.25rem;
|
|
3
|
+
$typography-heading-1-font-weight: 800;
|
|
4
|
+
$typography-heading-1-line-height: 1.2;
|
|
5
|
+
$typography-heading-1-letter-spacing: -0.0125em;
|
|
6
|
+
$typography-heading-2-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
7
|
+
$typography-heading-2-font-size: 1.5rem;
|
|
8
|
+
$typography-heading-2-font-weight: 700;
|
|
9
|
+
$typography-heading-2-line-height: 1.3333333;
|
|
10
|
+
$typography-heading-2-letter-spacing: 0em;
|
|
11
|
+
$typography-heading-3-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
12
|
+
$typography-heading-3-font-size: 1.25rem;
|
|
13
|
+
$typography-heading-3-font-weight: 600;
|
|
14
|
+
$typography-heading-3-line-height: 1.6;
|
|
15
|
+
$typography-heading-3-letter-spacing: 0em;
|
|
16
|
+
$typography-heading-4-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
17
|
+
$typography-heading-4-font-size: 1rem;
|
|
18
|
+
$typography-heading-4-font-weight: 600;
|
|
19
|
+
$typography-heading-4-line-height: 1.5;
|
|
20
|
+
$typography-heading-4-letter-spacing: 0em;
|
|
21
|
+
$typography-body-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
22
|
+
$typography-body-font-size: 1rem;
|
|
23
|
+
$typography-body-font-weight: 400;
|
|
24
|
+
$typography-body-line-height: 1.75;
|
|
25
|
+
$typography-body-letter-spacing: 0em;
|
|
26
|
+
$typography-body-sm-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
27
|
+
$typography-body-sm-font-size: 0.875rem;
|
|
28
|
+
$typography-body-sm-font-weight: 400;
|
|
29
|
+
$typography-body-sm-line-height: 1.75;
|
|
30
|
+
$typography-body-sm-letter-spacing: 0em;
|
|
31
|
+
$typography-lead-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
32
|
+
$typography-lead-font-size: 1.25rem;
|
|
33
|
+
$typography-lead-font-weight: 400;
|
|
34
|
+
$typography-lead-line-height: 1.6;
|
|
35
|
+
$typography-lead-letter-spacing: 0em;
|
|
36
|
+
$typography-caption-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
37
|
+
$typography-caption-font-size: 0.75rem;
|
|
38
|
+
$typography-caption-font-weight: 400;
|
|
39
|
+
$typography-caption-line-height: 1.5;
|
|
40
|
+
$typography-caption-letter-spacing: 0.025em;
|
|
41
|
+
$typography-code-font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
|
|
42
|
+
$typography-code-font-size: 0.875rem;
|
|
43
|
+
$typography-code-font-weight: 400;
|
|
44
|
+
$typography-code-line-height: 1.5;
|
|
45
|
+
$typography-code-letter-spacing: 0em;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--inset-shadow-thin: inset 0 0 0 0.0625rem;
|
|
3
|
+
--inset-shadow-thick: inset 0 0 0 0.125rem;
|
|
4
|
+
--inset-shadow-thicker: inset 0 0 0 0.25rem;
|
|
5
|
+
--shadow-color-5: rgb(0 0 0 / 0.05);
|
|
6
|
+
--shadow-color-10: rgb(0 0 0 / 0.1);
|
|
7
|
+
--shadow-color-25: rgb(0 0 0 / 0.25);
|
|
8
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
9
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
10
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
11
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"border-width": {
|
|
3
|
+
"thin": {
|
|
4
|
+
"$type": "dimension",
|
|
5
|
+
"$description": "Thin border (0.0625rem / 1px at the default root) — hairlines, dividers, and default control borders.",
|
|
6
|
+
"$value": {
|
|
7
|
+
"value": 0.0625,
|
|
8
|
+
"unit": "rem"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"thick": {
|
|
12
|
+
"$type": "dimension",
|
|
13
|
+
"$description": "Thick border (0.125rem / 2px at the default root) — emphasis borders and selected states.",
|
|
14
|
+
"$value": {
|
|
15
|
+
"value": 0.125,
|
|
16
|
+
"unit": "rem"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"thicker": {
|
|
20
|
+
"$type": "dimension",
|
|
21
|
+
"$description": "Thicker border (0.25rem / 4px at the default root) — focus rings and high-emphasis outlines.",
|
|
22
|
+
"$value": {
|
|
23
|
+
"value": 0.25,
|
|
24
|
+
"unit": "rem"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"default": {
|
|
28
|
+
"$type": "dimension",
|
|
29
|
+
"$description": "Default border width — aliases thin so the system-wide default can be retuned in one place.",
|
|
30
|
+
"$value": "{border-width.thin}"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"border-width": {
|
|
3
|
+
"thin": {
|
|
4
|
+
"$type": "dimension",
|
|
5
|
+
"$description": "Thin border (0.0625rem / 1px at the default root) — hairlines, dividers, and default control borders.",
|
|
6
|
+
"$value": {
|
|
7
|
+
"value": 0.0625,
|
|
8
|
+
"unit": "rem"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"thick": {
|
|
12
|
+
"$type": "dimension",
|
|
13
|
+
"$description": "Thick border (0.125rem / 2px at the default root) — emphasis borders and selected states.",
|
|
14
|
+
"$value": {
|
|
15
|
+
"value": 0.125,
|
|
16
|
+
"unit": "rem"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"thicker": {
|
|
20
|
+
"$type": "dimension",
|
|
21
|
+
"$description": "Thicker border (0.25rem / 4px at the default root) — focus rings and high-emphasis outlines.",
|
|
22
|
+
"$value": {
|
|
23
|
+
"value": 0.25,
|
|
24
|
+
"unit": "rem"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"default": {
|
|
28
|
+
"$type": "dimension",
|
|
29
|
+
"$description": "Default border width — aliases thin so the system-wide default can be retuned in one place.",
|
|
30
|
+
"$value": "{border-width.thin}"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|