@sfgov/design-system 0.0.0-53b7e30 → 0.0.0-9aae5fe
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/css/src/base.css +26 -0
- package/css/src/components/button.css +61 -0
- package/css/src/components/details.css +10 -0
- package/css/src/components/grid.css +12 -0
- package/css/src/components/index.css +4 -0
- package/css/src/components/kbd.css +5 -0
- package/css/src/components.css +1 -0
- package/css/src/fonts.css +1 -0
- package/css/src/icons.css +7 -0
- package/css/src/overrides.css +3 -0
- package/css/src/sfds.css +6 -0
- package/css/src/theme.js +104 -0
- package/css/src/tokens/breakpoints.js +5 -0
- package/css/src/tokens/colors.js +116 -0
- package/css/src/tokens/index.js +8 -0
- package/css/src/tokens/spacing.js +27 -0
- package/css/src/tokens/typography.js +66 -0
- package/css/src/tokens/widths.js +11 -0
- package/css/src/typography.css +103 -0
- package/css/src/utilities.css +1 -0
- package/dist/manifest.json +1 -1
- package/elements/index.js +1 -0
- package/elements/index.mjs +1 -0
- package/elements/src/index.js +7 -0
- package/elements/src/sfgov-icon.js +109 -0
- package/icons/index.json +439 -0
- package/icons/svg/accessibility.svg +4 -0
- package/icons/svg/alert.svg +5 -0
- package/icons/svg/archive.svg +4 -0
- package/icons/svg/arrow-down.svg +3 -0
- package/icons/svg/arrow-left.svg +3 -0
- package/icons/svg/arrow-right.svg +3 -0
- package/icons/svg/arrow-up.svg +3 -0
- package/icons/svg/building.svg +7 -0
- package/icons/svg/calendar.svg +3 -0
- package/icons/svg/caution.svg +3 -0
- package/icons/svg/chart.svg +6 -0
- package/icons/svg/check.svg +3 -0
- package/icons/svg/chevron-down.svg +3 -0
- package/icons/svg/chevron-left.svg +3 -0
- package/icons/svg/chevron-right.svg +3 -0
- package/icons/svg/chevron-up.svg +3 -0
- package/icons/svg/clock.svg +4 -0
- package/icons/svg/close.svg +3 -0
- package/icons/svg/document.svg +3 -0
- package/icons/svg/globe.svg +3 -0
- package/icons/svg/hamburger-button.svg +5 -0
- package/icons/svg/index.json +346 -0
- package/icons/svg/info.svg +5 -0
- package/icons/svg/location.svg +4 -0
- package/icons/svg/mail.svg +3 -0
- package/icons/svg/minus.svg +3 -0
- package/icons/svg/pencil.svg +3 -0
- package/icons/svg/phone.svg +3 -0
- package/icons/svg/plus.svg +3 -0
- package/icons/svg/question.svg +4 -0
- package/icons/svg/search.svg +3 -0
- package/icons/svg/wip.svg +3 -0
- package/lib/tailwind/details.js +14 -0
- package/package.json +9 -4
- package/react/README.md +36 -0
- package/react/index.js +1 -0
- package/react/index.mjs +1 -0
- package/react/src/components/Box.tsx +6 -0
- package/react/src/components/Button.tsx +94 -0
- package/react/src/components/Container.tsx +19 -0
- package/react/src/components/Flex.tsx +16 -0
- package/react/src/components/GlobalStyle.tsx +35 -0
- package/react/src/components/GoogleFonts.tsx +67 -0
- package/react/src/components/Grid.tsx +15 -0
- package/react/src/components/SSRStyle.tsx +47 -0
- package/react/src/components/SVGIcon.tsx +42 -0
- package/react/src/components/Text.tsx +78 -0
- package/react/src/components/Tile.tsx +93 -0
- package/react/src/components/index.ts +11 -0
- package/react/src/components/page/AboutSection.tsx +90 -0
- package/react/src/components/page/AgencyHeader.tsx +56 -0
- package/react/src/components/page/ArchiveInformation.tsx +43 -0
- package/react/src/components/page/ContactSection.tsx +92 -0
- package/react/src/components/page/Section.tsx +53 -0
- package/react/src/components/page/Spotlight.tsx +70 -0
- package/react/src/components/page/index.ts +6 -0
- package/react/src/constants.ts +48 -0
- package/react/src/icons/IconAccessibility.jsx +3 -0
- package/react/src/icons/IconAlert.jsx +3 -0
- package/react/src/icons/IconArchive.jsx +3 -0
- package/react/src/icons/IconArrowDown.jsx +3 -0
- package/react/src/icons/IconArrowLeft.jsx +3 -0
- package/react/src/icons/IconArrowRight.jsx +3 -0
- package/react/src/icons/IconArrowUp.jsx +3 -0
- package/react/src/icons/IconBuilding.jsx +3 -0
- package/react/src/icons/IconCalendar.jsx +3 -0
- package/react/src/icons/IconCaution.jsx +3 -0
- package/react/src/icons/IconChart.jsx +3 -0
- package/react/src/icons/IconCheck.jsx +3 -0
- package/react/src/icons/IconChevronDown.jsx +3 -0
- package/react/src/icons/IconChevronLeft.jsx +3 -0
- package/react/src/icons/IconChevronRight.jsx +3 -0
- package/react/src/icons/IconChevronUp.jsx +3 -0
- package/react/src/icons/IconClock.jsx +3 -0
- package/react/src/icons/IconClose.jsx +3 -0
- package/react/src/icons/IconDocument.jsx +3 -0
- package/react/src/icons/IconGlobe.jsx +3 -0
- package/react/src/icons/IconHamburgerButton.jsx +3 -0
- package/react/src/icons/IconInfo.jsx +3 -0
- package/react/src/icons/IconLocation.jsx +3 -0
- package/react/src/icons/IconMail.jsx +3 -0
- package/react/src/icons/IconMinus.jsx +3 -0
- package/react/src/icons/IconPencil.jsx +3 -0
- package/react/src/icons/IconPhone.jsx +3 -0
- package/react/src/icons/IconPlus.jsx +3 -0
- package/react/src/icons/IconQuestion.jsx +3 -0
- package/react/src/icons/IconSearch.jsx +3 -0
- package/react/src/icons/IconWIP.jsx +3 -0
- package/react/src/icons/index.js +31 -0
- package/react/src/icons/index.json +346 -0
- package/react/src/icons.tsx +34 -0
- package/react/src/index.ts +4 -0
- package/react/src/stitches.config.ts +85 -0
- package/react/src/theme/breakpoints.ts +14 -0
- package/react/src/theme/colors.ts +34 -0
- package/react/src/theme/index.tsx +31 -0
- package/react/src/theme/space.ts +16 -0
- package/react/src/theme/typography.ts +136 -0
- package/react/src/types.ts +31 -0
- package/react/src/utils.tsx +25 -0
- package/tailwind.preset.js +1 -1
- package/babel.config.js +0 -16
- package/postcss.config.js +0 -17
- package/rollup.config.mjs +0 -72
package/css/src/base.css
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import 'tailwindcss/base';
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
* {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
body {
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
a {
|
|
14
|
+
@apply text-action;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:focus,
|
|
18
|
+
.focus {
|
|
19
|
+
outline: 2px dotted theme('colors.grey.focus');
|
|
20
|
+
outline-offset: 3px; /* TODO [>=3]: remove outline-offset (or set to 0) */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
::placeholder {
|
|
24
|
+
@apply text-slate-light;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.btn {
|
|
3
|
+
@apply inline-flex;
|
|
4
|
+
@apply appearance-none;
|
|
5
|
+
@apply cursor-pointer;
|
|
6
|
+
@apply text-body font-medium;
|
|
7
|
+
@apply rounded;
|
|
8
|
+
@apply px-20 py-8;
|
|
9
|
+
@apply bg-blue-bright;
|
|
10
|
+
@apply text-white;
|
|
11
|
+
@apply no-underline;
|
|
12
|
+
@apply border-0 border-solid border-current;
|
|
13
|
+
@apply text-center justify-center items-center;
|
|
14
|
+
@apply whitespace-nowrap;
|
|
15
|
+
@apply hocus:bg-blue-dark;
|
|
16
|
+
|
|
17
|
+
&.hover,
|
|
18
|
+
&.focus {
|
|
19
|
+
@apply bg-blue-dark;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.btn-inverse {
|
|
24
|
+
@apply bg-white;
|
|
25
|
+
@apply text-blue-bright;
|
|
26
|
+
@apply hocus:bg-white hocus:text-blue-dark;
|
|
27
|
+
|
|
28
|
+
&.hover,
|
|
29
|
+
&.focus {
|
|
30
|
+
@apply bg-white text-blue-dark;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.btn-secondary {
|
|
35
|
+
@apply bg-white;
|
|
36
|
+
@apply text-blue-bright;
|
|
37
|
+
@apply border;
|
|
38
|
+
@apply hocus:bg-white hocus:text-blue-dark;
|
|
39
|
+
|
|
40
|
+
&.hover,
|
|
41
|
+
&.focus {
|
|
42
|
+
@apply bg-white text-blue-dark;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.btn-link {
|
|
47
|
+
@apply border-0 hocus:border-0;
|
|
48
|
+
@apply bg-none text-blue-bright;
|
|
49
|
+
@apply hover:bg-none hover:text-blue-dark;
|
|
50
|
+
@apply underline;
|
|
51
|
+
|
|
52
|
+
&.hover,
|
|
53
|
+
&.focus {
|
|
54
|
+
@apply bg-none text-blue-dark;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.btn-block {
|
|
59
|
+
@apply flex w-full;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './components/index.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;600&family=Noto+Sans+TC:wght@300;400;500&family=Roboto+Mono&display=swap');
|
package/css/src/sfds.css
ADDED
package/css/src/theme.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
const breakpoints = require('./tokens/breakpoints')
|
|
2
|
+
const { text: textColor, ...colors } = require('./tokens/colors')
|
|
3
|
+
const { fontFamily, ...typography } = require('./tokens/typography')
|
|
4
|
+
const spacing = require('./tokens/spacing')
|
|
5
|
+
const widths = require('./tokens/widths')
|
|
6
|
+
|
|
7
|
+
// available column grid templates
|
|
8
|
+
const gridColumns = [1, 2, 3, 6, 12]
|
|
9
|
+
// possible per-column spans
|
|
10
|
+
const gridColumnSpans = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
|
11
|
+
// available row grid templates
|
|
12
|
+
const gridRows = [1, 2, 3]
|
|
13
|
+
// possible per-row spans
|
|
14
|
+
const gridRowSpans = gridRows
|
|
15
|
+
|
|
16
|
+
module.exports = {
|
|
17
|
+
colors,
|
|
18
|
+
screens: breakpoints,
|
|
19
|
+
spacing, // TODO [>=3]: add line heights to spacing scale
|
|
20
|
+
fontFamily: {
|
|
21
|
+
...fontFamily,
|
|
22
|
+
inherit: 'inherit'
|
|
23
|
+
},
|
|
24
|
+
...typography,
|
|
25
|
+
borderColor: {
|
|
26
|
+
current: 'currentColor',
|
|
27
|
+
...colors
|
|
28
|
+
},
|
|
29
|
+
textColor: {
|
|
30
|
+
inherit: 'inherit',
|
|
31
|
+
...colors, // TODO [>=3]: remove this in favor of only textColor
|
|
32
|
+
...textColor
|
|
33
|
+
},
|
|
34
|
+
borderRadius: {
|
|
35
|
+
DEFAULT: '8px',
|
|
36
|
+
0: '0',
|
|
37
|
+
2: '2px',
|
|
38
|
+
4: '4px',
|
|
39
|
+
full: '100%'
|
|
40
|
+
},
|
|
41
|
+
borderWidth: {
|
|
42
|
+
DEFAULT: '3px',
|
|
43
|
+
0: '0',
|
|
44
|
+
1: '1px',
|
|
45
|
+
2: '2px',
|
|
46
|
+
3: '3px',
|
|
47
|
+
4: '4px'
|
|
48
|
+
},
|
|
49
|
+
gap: {
|
|
50
|
+
...spacing
|
|
51
|
+
},
|
|
52
|
+
gridColumn: {
|
|
53
|
+
'span-auto': 'auto',
|
|
54
|
+
'span-full': '1 / -1',
|
|
55
|
+
...Object.fromEntries(
|
|
56
|
+
gridColumnSpans.map((n) => [`span-${n}`, `span ${n} / span ${n}`])
|
|
57
|
+
)
|
|
58
|
+
},
|
|
59
|
+
gridRow: {
|
|
60
|
+
'span-auto': 'auto',
|
|
61
|
+
'span-full': '1 / -1',
|
|
62
|
+
...Object.fromEntries(
|
|
63
|
+
gridRowSpans.map((n) => [`span-${n}`, `span ${n} / span ${n}`])
|
|
64
|
+
)
|
|
65
|
+
},
|
|
66
|
+
gridTemplateColumns: {
|
|
67
|
+
...Object.fromEntries(
|
|
68
|
+
gridColumns.map((n) => [n, `repeat(${n}, minmax(0, 1fr))`])
|
|
69
|
+
)
|
|
70
|
+
},
|
|
71
|
+
gridTemplateRows: {
|
|
72
|
+
...Object.fromEntries(
|
|
73
|
+
gridRows.map((n) => [n, `repeat(${n}, minmax(0, auto))`])
|
|
74
|
+
)
|
|
75
|
+
},
|
|
76
|
+
height: {
|
|
77
|
+
auto: 'auto',
|
|
78
|
+
full: '100%',
|
|
79
|
+
...spacing
|
|
80
|
+
},
|
|
81
|
+
margin: {
|
|
82
|
+
auto: 'auto',
|
|
83
|
+
...spacing
|
|
84
|
+
},
|
|
85
|
+
maxWidth: (theme) => ({
|
|
86
|
+
...theme('width')
|
|
87
|
+
}),
|
|
88
|
+
width: {
|
|
89
|
+
auto: 'auto',
|
|
90
|
+
'1/1': '100%',
|
|
91
|
+
'1/2': '50%',
|
|
92
|
+
'1/3': '33.3333333%',
|
|
93
|
+
'1/4': '25%',
|
|
94
|
+
'2/2': '100%',
|
|
95
|
+
'2/3': '66.6666666%',
|
|
96
|
+
'2/4': '50%',
|
|
97
|
+
'3/3': '100%',
|
|
98
|
+
'3/4': '75%',
|
|
99
|
+
'4/4': '100%',
|
|
100
|
+
full: '100%',
|
|
101
|
+
...widths,
|
|
102
|
+
...spacing
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
const actionBlue = '#495ED4'
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
none: 'transparent',
|
|
5
|
+
white: '#FFFFFF',
|
|
6
|
+
black: '#212123',
|
|
7
|
+
text: {
|
|
8
|
+
secondary: '#59595c'
|
|
9
|
+
},
|
|
10
|
+
action: actionBlue,
|
|
11
|
+
blue: {
|
|
12
|
+
1: '#EDF4F7',
|
|
13
|
+
2: '#A9D6EA',
|
|
14
|
+
bright: actionBlue,
|
|
15
|
+
dark: '#0C1464'
|
|
16
|
+
},
|
|
17
|
+
slate: {
|
|
18
|
+
DEFAULT: '#1D4D70', // Slate L3
|
|
19
|
+
light: '#5A7A92', // Slate L2
|
|
20
|
+
4: '#002B48',
|
|
21
|
+
3: '#1D4D70',
|
|
22
|
+
2: '#5A7A92',
|
|
23
|
+
1: '#EFF3F4'
|
|
24
|
+
},
|
|
25
|
+
green: {
|
|
26
|
+
4: '#1B674D',
|
|
27
|
+
3: '#00866A',
|
|
28
|
+
2: '#C0E2C5',
|
|
29
|
+
1: '#E9F7EC'
|
|
30
|
+
},
|
|
31
|
+
red: {
|
|
32
|
+
4: '#9B3921',
|
|
33
|
+
3: '#C55236',
|
|
34
|
+
2: '#EFCABB',
|
|
35
|
+
1: '#F5E9E5'
|
|
36
|
+
},
|
|
37
|
+
purple: {
|
|
38
|
+
4: '#543A89',
|
|
39
|
+
3: '#7D61B3',
|
|
40
|
+
2: '#CCCCED',
|
|
41
|
+
1: '#EDEBF6'
|
|
42
|
+
},
|
|
43
|
+
yellow: {
|
|
44
|
+
4: '#E0A81A',
|
|
45
|
+
3: '#F4C435',
|
|
46
|
+
2: '#F9E3A3',
|
|
47
|
+
1: '#F8F1DF'
|
|
48
|
+
},
|
|
49
|
+
grey: {
|
|
50
|
+
dark: '#424244',
|
|
51
|
+
focus: '#A1A1A1', // Grey L4
|
|
52
|
+
4: '#A1A1A1',
|
|
53
|
+
3: '#C2C2C2',
|
|
54
|
+
2: '#E2E2E2',
|
|
55
|
+
1: '#F6F6F6'
|
|
56
|
+
},
|
|
57
|
+
sequential: {
|
|
58
|
+
darkBlue: {
|
|
59
|
+
7: '#0d1670',
|
|
60
|
+
6: '#2f287a',
|
|
61
|
+
5: '#463a84',
|
|
62
|
+
4: '#5a4d8f',
|
|
63
|
+
3: '#6e6099',
|
|
64
|
+
2: '#8074a3',
|
|
65
|
+
1: '#9389ad'
|
|
66
|
+
},
|
|
67
|
+
orange: {
|
|
68
|
+
7: '#eb6d05',
|
|
69
|
+
6: '#ce610f',
|
|
70
|
+
5: '#b15514',
|
|
71
|
+
4: '#964a17',
|
|
72
|
+
3: '#7b3f18',
|
|
73
|
+
2: '#603418',
|
|
74
|
+
1: '#472917'
|
|
75
|
+
},
|
|
76
|
+
teal: {
|
|
77
|
+
7: '#279d9a',
|
|
78
|
+
6: '#208e8b',
|
|
79
|
+
5: '#197f7c',
|
|
80
|
+
4: '#12706d',
|
|
81
|
+
3: '#0b625f',
|
|
82
|
+
2: '#055451',
|
|
83
|
+
1: '#004644'
|
|
84
|
+
},
|
|
85
|
+
blue: {
|
|
86
|
+
7: '#0099e8',
|
|
87
|
+
6: '#1389cf',
|
|
88
|
+
5: '#1b7ab7',
|
|
89
|
+
4: '#1f6ba0',
|
|
90
|
+
3: '#205c89',
|
|
91
|
+
2: '#204e73',
|
|
92
|
+
1: '#1e405d'
|
|
93
|
+
},
|
|
94
|
+
purple: {
|
|
95
|
+
7: '#7e5acc',
|
|
96
|
+
6: '#6e4fb1',
|
|
97
|
+
5: '#5e4397',
|
|
98
|
+
4: '#4f397d',
|
|
99
|
+
3: '#402e65',
|
|
100
|
+
2: '#32244d',
|
|
101
|
+
1: '#241a37'
|
|
102
|
+
},
|
|
103
|
+
pink: {
|
|
104
|
+
7: '#d5006d',
|
|
105
|
+
6: '#b90e5f',
|
|
106
|
+
5: '#9e1451',
|
|
107
|
+
4: '#831644',
|
|
108
|
+
3: '#691737',
|
|
109
|
+
2: '#51152b',
|
|
110
|
+
1: '#39121f'
|
|
111
|
+
},
|
|
112
|
+
grey: {
|
|
113
|
+
0: '#c6c6c6'
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
0: '0',
|
|
3
|
+
...pxMap([
|
|
4
|
+
2,
|
|
5
|
+
4,
|
|
6
|
+
8,
|
|
7
|
+
12,
|
|
8
|
+
16,
|
|
9
|
+
20,
|
|
10
|
+
24, // TODO: deprecate @3
|
|
11
|
+
28,
|
|
12
|
+
40,
|
|
13
|
+
48, // TODO: deprecate @3
|
|
14
|
+
60,
|
|
15
|
+
80,
|
|
16
|
+
96,
|
|
17
|
+
100 // TODO [>=3]: deprecate in favor of 96
|
|
18
|
+
])
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function pxMap (values) {
|
|
22
|
+
const map = {}
|
|
23
|
+
for (const n of values) {
|
|
24
|
+
map[n] = `${n}px`
|
|
25
|
+
}
|
|
26
|
+
return map
|
|
27
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const fontFamily = {
|
|
2
|
+
rubik: ['Rubik', 'ui-sans-serif', 'sans-serif'],
|
|
3
|
+
mono: ['Roboto mono', 'monospace']
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
const fontWeight = {
|
|
7
|
+
light: 300,
|
|
8
|
+
regular: 400,
|
|
9
|
+
// TODO [>=3]: rename to "semibold" (or "bold"?) and alias to "medium"
|
|
10
|
+
medium: 600
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module.exports = {
|
|
14
|
+
fontFamily,
|
|
15
|
+
fontSize: {
|
|
16
|
+
'display-lg': ['44px', {
|
|
17
|
+
letterSpacing: '-1px',
|
|
18
|
+
lineHeight: '48px'
|
|
19
|
+
}],
|
|
20
|
+
'display-sm': ['36px', {
|
|
21
|
+
letterSpacing: '-1px',
|
|
22
|
+
lineHeight: '40px'
|
|
23
|
+
}],
|
|
24
|
+
'title-xl': ['32px', {
|
|
25
|
+
letterSpacing: '-1px',
|
|
26
|
+
lineHeight: '36px'
|
|
27
|
+
}],
|
|
28
|
+
'title-lg': ['28px', {
|
|
29
|
+
letterSpacing: '-1px',
|
|
30
|
+
lineHeight: '32px'
|
|
31
|
+
}],
|
|
32
|
+
'title-md': ['24px', '28px'],
|
|
33
|
+
'title-sm': ['24px', '28px'],
|
|
34
|
+
'title-xs': ['20px', '24px'],
|
|
35
|
+
'big-desc': ['20px', '28px'],
|
|
36
|
+
'display-lg-desktop': ['72px', {
|
|
37
|
+
letterSpacing: '-2px',
|
|
38
|
+
lineHeight: '76px'
|
|
39
|
+
}],
|
|
40
|
+
'display-sm-desktop': ['48px', {
|
|
41
|
+
letterSpacing: '-1px',
|
|
42
|
+
lineHeight: '52px'
|
|
43
|
+
}],
|
|
44
|
+
'title-xl-desktop': ['60px', {
|
|
45
|
+
letterSpacing: '-1px',
|
|
46
|
+
lineHeight: '64px'
|
|
47
|
+
}],
|
|
48
|
+
'title-lg-desktop': ['44px', {
|
|
49
|
+
letterSpacing: '-1px',
|
|
50
|
+
lineHeight: '52px'
|
|
51
|
+
}],
|
|
52
|
+
'title-md-desktop': ['32px', '36px'],
|
|
53
|
+
'title-sm-desktop': ['24px', '28px'],
|
|
54
|
+
'title-xs-desktop': ['20px', '24px'],
|
|
55
|
+
'big-desc-desktop': ['24px', '32px'],
|
|
56
|
+
body: ['16px', '24px'],
|
|
57
|
+
small: ['14px', '18px']
|
|
58
|
+
},
|
|
59
|
+
fontWeight,
|
|
60
|
+
// TODO [>=3]: delete these
|
|
61
|
+
letterSpacing: {
|
|
62
|
+
0: '0',
|
|
63
|
+
n1: '-1px',
|
|
64
|
+
n2: '-2px'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
* {
|
|
3
|
+
@apply font-rubik;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
@apply text-body;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Don't make people add class="font-medium"
|
|
11
|
+
* to elements that should be bold. */
|
|
12
|
+
b,
|
|
13
|
+
strong {
|
|
14
|
+
@apply font-medium;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
pre {
|
|
18
|
+
@apply whitespace-pre-wrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
pre,
|
|
22
|
+
code {
|
|
23
|
+
@apply font-mono;
|
|
24
|
+
|
|
25
|
+
* {
|
|
26
|
+
@apply font-inherit;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.display-lg {
|
|
31
|
+
@apply text-display-lg font-light;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.display-sm {
|
|
35
|
+
@apply text-display-sm font-light;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.title-xl {
|
|
39
|
+
@apply text-title-xl font-medium;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.title-lg {
|
|
43
|
+
@apply text-title-lg font-medium;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.title-md {
|
|
47
|
+
@apply text-title-md font-medium;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.title-sm {
|
|
51
|
+
@apply text-title-sm font-medium;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.title-xs {
|
|
55
|
+
@apply text-title-xs font-medium;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.big-desc {
|
|
59
|
+
@apply text-big-desc font-regular;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.small {
|
|
63
|
+
@apply text-small !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.font-mono {
|
|
67
|
+
@apply text-small;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@screen lg {
|
|
71
|
+
.display-lg {
|
|
72
|
+
@apply text-display-lg-desktop font-light;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.display-sm {
|
|
76
|
+
@apply text-display-sm-desktop font-light;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.title-xl {
|
|
80
|
+
@apply text-title-xl-desktop;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.title-lg {
|
|
84
|
+
@apply text-title-lg-desktop;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.title-md {
|
|
88
|
+
@apply text-title-md-desktop font-medium;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.title-sm {
|
|
92
|
+
@apply text-title-sm-desktop font-medium;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.title-xs {
|
|
96
|
+
@apply text-title-xs-desktop font-medium;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.big-desc {
|
|
100
|
+
@apply text-big-desc-desktop font-regular;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'tailwindcss/utilities';
|
package/dist/manifest.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/elements/index.js')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/elements/index.mjs'
|