@navikt/ds-tailwind 0.1.1

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 (2) hide show
  1. package/package.json +33 -0
  2. package/tailwind.config.js +199 -0
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@navikt/ds-tailwind",
3
+ "version": "0.1.1",
4
+ "private": false,
5
+ "description": "Auto-generated tailwind config based on @navikt/ds-tokens",
6
+ "author": "NAV Designsystem team",
7
+ "keywords": [
8
+ "tailwind",
9
+ "design-tokens"
10
+ ],
11
+ "main": "tailwind.config.js",
12
+ "license": "MIT",
13
+ "files": [
14
+ "tailwind.config.js"
15
+ ],
16
+ "scripts": {
17
+ "build": "ts-node ./src",
18
+ "test": "jest"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/navikt/nav-frontend-moduler.git",
23
+ "directory": "@navikt/core/tailwind"
24
+ },
25
+ "devDependencies": {
26
+ "@navikt/ds-tokens": "^0.8.1",
27
+ "@types/jest": "^27.0.1",
28
+ "jest": "^27.2.0",
29
+ "lodash": "^4.17.21",
30
+ "ts-jest": "^27.0.5",
31
+ "ts-node": "^10.3.0"
32
+ }
33
+ }
@@ -0,0 +1,199 @@
1
+ module.exports = {
2
+ "theme": {
3
+ "colors": {
4
+ "blue-50": "rgba(230, 240, 255, 1)",
5
+ "blue-100": "rgba(204, 225, 255, 1)",
6
+ "blue-200": "rgba(153, 195, 255, 1)",
7
+ "blue-300": "rgba(102, 165, 244, 1)",
8
+ "blue-400": "rgba(51, 134, 224, 1)",
9
+ "blue-500": "rgba(0, 103, 197, 1)",
10
+ "blue-600": "rgba(0, 86, 180, 1)",
11
+ "blue-700": "rgba(0, 69, 156, 1)",
12
+ "blue-800": "rgba(0, 52, 125, 1)",
13
+ "blue-900": "rgba(0, 34, 82, 1)",
14
+ "deepblue-50": "rgba(230, 241, 248, 1)",
15
+ "deepblue-100": "rgba(204, 226, 240, 1)",
16
+ "deepblue-200": "rgba(153, 196, 221, 1)",
17
+ "deepblue-300": "rgba(102, 163, 196, 1)",
18
+ "deepblue-400": "rgba(51, 128, 165, 1)",
19
+ "deepblue-500": "rgba(0, 91, 130, 1)",
20
+ "deepblue-600": "rgba(0, 80, 119, 1)",
21
+ "deepblue-700": "rgba(0, 67, 103, 1)",
22
+ "deepblue-800": "rgba(0, 52, 83, 1)",
23
+ "deepblue-900": "rgba(0, 36, 58, 1)",
24
+ "gray-50": "rgba(247, 247, 247, 1)",
25
+ "gray-100": "rgba(241, 241, 241, 1)",
26
+ "gray-200": "rgba(229, 229, 229, 1)",
27
+ "gray-300": "rgba(207, 207, 207, 1)",
28
+ "gray-400": "rgba(176, 176, 176, 1)",
29
+ "gray-500": "rgba(143, 143, 143, 1)",
30
+ "gray-600": "rgba(112, 112, 112, 1)",
31
+ "gray-700": "rgba(89, 89, 89, 1)",
32
+ "gray-800": "rgba(64, 64, 64, 1)",
33
+ "gray-900": "rgba(38, 38, 38, 1)",
34
+ "green-50": "rgba(243, 252, 245, 1)",
35
+ "green-100": "rgba(204, 241, 214, 1)",
36
+ "green-200": "rgba(153, 222, 173, 1)",
37
+ "green-300": "rgba(102, 199, 134, 1)",
38
+ "green-400": "rgba(51, 170, 95, 1)",
39
+ "green-500": "rgba(6, 137, 58, 1)",
40
+ "green-600": "rgba(0, 124, 46, 1)",
41
+ "green-700": "rgba(0, 106, 35, 1)",
42
+ "green-800": "rgba(0, 85, 25, 1)",
43
+ "green-900": "rgba(0, 59, 15, 1)",
44
+ "lightblue-50": "rgba(235, 252, 255, 1)",
45
+ "lightblue-100": "rgba(216, 249, 255, 1)",
46
+ "lightblue-200": "rgba(181, 241, 255, 1)",
47
+ "lightblue-300": "rgba(151, 230, 255, 1)",
48
+ "lightblue-400": "rgba(124, 218, 248, 1)",
49
+ "lightblue-500": "rgba(102, 203, 236, 1)",
50
+ "lightblue-600": "rgba(76, 173, 205, 1)",
51
+ "lightblue-700": "rgba(54, 141, 168, 1)",
52
+ "lightblue-800": "rgba(35, 107, 125, 1)",
53
+ "lightblue-900": "rgba(19, 72, 82, 1)",
54
+ "limegreen-50": "rgba(253, 255, 230, 1)",
55
+ "limegreen-100": "rgba(249, 252, 204, 1)",
56
+ "limegreen-200": "rgba(236, 243, 153, 1)",
57
+ "limegreen-300": "rgba(217, 227, 102, 1)",
58
+ "limegreen-400": "rgba(193, 203, 51, 1)",
59
+ "limegreen-500": "rgba(162, 173, 0, 1)",
60
+ "limegreen-600": "rgba(147, 158, 0, 1)",
61
+ "limegreen-700": "rgba(127, 137, 0, 1)",
62
+ "limegreen-800": "rgba(102, 110, 0, 1)",
63
+ "limegreen-900": "rgba(71, 78, 0, 1)",
64
+ "nav-red": "rgba(195, 0, 0, 1)",
65
+ "orange-50": "rgba(255, 249, 240, 1)",
66
+ "orange-100": "rgba(255, 236, 204, 1)",
67
+ "orange-200": "rgba(255, 215, 153, 1)",
68
+ "orange-300": "rgba(255, 193, 102, 1)",
69
+ "orange-400": "rgba(255, 170, 51, 1)",
70
+ "orange-500": "rgba(255, 145, 0, 1)",
71
+ "orange-600": "rgba(212, 123, 0, 1)",
72
+ "orange-700": "rgba(168, 100, 0, 1)",
73
+ "orange-800": "rgba(125, 76, 0, 1)",
74
+ "orange-900": "rgba(82, 51, 0, 1)",
75
+ "purple-50": "rgba(239, 236, 244, 1)",
76
+ "purple-100": "rgba(224, 216, 233, 1)",
77
+ "purple-200": "rgba(192, 178, 210, 1)",
78
+ "purple-300": "rgba(161, 141, 187, 1)",
79
+ "purple-400": "rgba(130, 105, 162, 1)",
80
+ "purple-500": "rgba(99, 70, 137, 1)",
81
+ "purple-600": "rgba(82, 56, 116, 1)",
82
+ "purple-700": "rgba(65, 43, 93, 1)",
83
+ "purple-800": "rgba(48, 31, 70, 1)",
84
+ "purple-900": "rgba(31, 20, 47, 1)",
85
+ "red-50": "rgba(253, 232, 230, 1)",
86
+ "red-100": "rgba(249, 210, 204, 1)",
87
+ "red-200": "rgba(239, 168, 157, 1)",
88
+ "red-300": "rgba(225, 128, 113, 1)",
89
+ "red-400": "rgba(208, 92, 74, 1)",
90
+ "red-500": "rgba(186, 58, 38, 1)",
91
+ "red-600": "rgba(163, 42, 23, 1)",
92
+ "red-700": "rgba(136, 29, 12, 1)",
93
+ "red-800": "rgba(106, 18, 4, 1)",
94
+ "red-900": "rgba(72, 9, 0, 1)",
95
+ "transparent": "rgba(255, 255, 255, 0)",
96
+ "white": "rgba(255, 255, 255, 1)",
97
+ "border-inverted": "rgba(229, 229, 229, 1)",
98
+ "border-muted": "rgba(176, 176, 176, 1)",
99
+ "border": "rgba(112, 112, 112, 1)",
100
+ "canvas-background-inverted": "rgba(38, 38, 38, 1)",
101
+ "canvas-background-light": "rgba(255, 255, 255, 1)",
102
+ "canvas-background": "rgba(241, 241, 241, 1)",
103
+ "component-background-alternate": "rgba(247, 247, 247, 1)",
104
+ "component-background-inverted": "rgba(38, 38, 38, 1)",
105
+ "component-background-light": "rgba(255, 255, 255, 1)",
106
+ "divider": "rgba(229, 229, 229, 1)",
107
+ "feedback-danger-background": "rgba(249, 210, 204, 1)",
108
+ "feedback-danger-border": "rgba(186, 58, 38, 1)",
109
+ "feedback-danger-icon": "rgba(186, 58, 38, 1)",
110
+ "feedback-danger-text": "rgba(186, 58, 38, 1)",
111
+ "feedback-info-background": "rgba(216, 249, 255, 1)",
112
+ "feedback-info-border": "rgba(54, 141, 168, 1)",
113
+ "feedback-info-icon": "rgba(54, 141, 168, 1)",
114
+ "feedback-success-background": "rgba(204, 241, 214, 1)",
115
+ "feedback-success-border": "rgba(6, 137, 58, 1)",
116
+ "feedback-success-icon": "rgba(0, 124, 46, 1)",
117
+ "feedback-warning-background": "rgba(255, 236, 204, 1)",
118
+ "feedback-warning-border": "rgba(212, 123, 0, 1)",
119
+ "feedback-warning-icon": "rgba(255, 145, 0, 1)",
120
+ "focus-inverted": "rgba(153, 195, 255, 1)",
121
+ "focus": "rgba(0, 52, 125, 1)",
122
+ "interaction-danger-hover": "rgba(163, 42, 23, 1)",
123
+ "interaction-danger-selected": "rgba(136, 29, 12, 1)",
124
+ "interaction-danger": "rgba(186, 58, 38, 1)",
125
+ "interaction-primary-hover-subtle": "rgba(230, 240, 255, 1)",
126
+ "interaction-primary-hover": "rgba(0, 86, 180, 1)",
127
+ "interaction-primary-selected": "rgba(0, 91, 130, 1)",
128
+ "interaction-primary": "rgba(0, 103, 197, 1)",
129
+ "link-visited": "rgba(99, 70, 137, 1)",
130
+ "link": "rgba(0, 103, 197, 1)",
131
+ "text-inverted": "rgba(255, 255, 255, 1)",
132
+ "text-muted": "rgba(112, 112, 112, 1)",
133
+ "text": "rgba(38, 38, 38, 1)"
134
+ },
135
+ "extend": {
136
+ "spacing": {
137
+ "1": "0.25rem",
138
+ "2": "0.5rem",
139
+ "3": "0.75rem",
140
+ "4": "1rem",
141
+ "5": "1.25rem",
142
+ "6": "1.5rem",
143
+ "7": "1.75rem",
144
+ "8": "2rem",
145
+ "9": "2.25rem",
146
+ "10": "2.5rem",
147
+ "11": "2.75rem",
148
+ "12": "3rem",
149
+ "14": "3.5rem",
150
+ "16": "4rem",
151
+ "18": "4.5rem",
152
+ "20": "5rem",
153
+ "24": "6rem",
154
+ "32": "8rem"
155
+ },
156
+ "zIndex": {
157
+ "modal": 2000,
158
+ "popover": 1000,
159
+ "focus": 10
160
+ },
161
+ "boxShadow": {
162
+ "focus": "0 0 0 3px rgba(0, 52, 125, 1)",
163
+ "focus-inverted": "0 0 0 3px rgba(153, 195, 255, 1)",
164
+ "popover": "0 2px 4px 0 rgba(229, 229, 229, 1)",
165
+ "card": "0 1px 3px 0 rgba(38,38,38,0.2),0 2px 1px 0 rgba(38,38,38,0.12),0 1px 1px 0 rgba(38,38,38,0.14)"
166
+ },
167
+ "fontWeight": {
168
+ "bold": "600",
169
+ "regular": "400"
170
+ },
171
+ "fontSize": {
172
+ "heading-2-xlarge": "2.5rem",
173
+ "heading-xlarge": "2rem",
174
+ "heading-large": "1.75rem",
175
+ "heading-medium": "1.5rem",
176
+ "heading-small": "1.25rem",
177
+ "heading-xsmall": "1.125rem",
178
+ "xlarge": "1.25rem",
179
+ "large": "1.125rem",
180
+ "medium": "1rem",
181
+ "small": "0.875rem"
182
+ },
183
+ "lineHeight": {
184
+ "heading-2-xlarge": "3.25rem",
185
+ "heading-xlarge": "2.5rem",
186
+ "heading-large": "2.25rem",
187
+ "heading-medium": "2rem",
188
+ "heading-small": "1.75rem",
189
+ "heading-xsmall": "1.5rem",
190
+ "xlarge": "1.75rem",
191
+ "large": "1.5rem",
192
+ "medium": "1.25rem"
193
+ },
194
+ "fontFamily": {
195
+ "font-family": "\"Source Sans Pro\", Arial, sans-serif"
196
+ }
197
+ }
198
+ }
199
+ };