@ucdavis/gunrock-tailwind 1.2.0 → 2.0.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/README.md +4 -11
- package/imports.css +43 -0
- package/package.json +9 -8
- package/colors.js +0 -34
- package/daisyui-theme.js +0 -16
- package/index.js +0 -67
package/README.md
CHANGED
|
@@ -2,15 +2,8 @@ tailwind config file for UC D projects
|
|
|
2
2
|
|
|
3
3
|
npm install @ucdavis/gunrock-tailwind
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
const preset = require('@ucdavis/gunrock-tailwind');
|
|
5
|
+
global.css should look like
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
global css
|
|
14
|
-
@tailwind base;
|
|
15
|
-
@tailwind components;
|
|
16
|
-
@tailwind utilities;
|
|
7
|
+
@import 'tailwindcss';
|
|
8
|
+
@plugin "daisyui";
|
|
9
|
+
@import './gunrocktailwind.css';
|
package/imports.css
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "proxima-nova-r";
|
|
3
|
+
src: url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-regular-webfont.woff")
|
|
4
|
+
format("woff");
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-display: fallback;
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "proxima-nova-i";
|
|
11
|
+
src: url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-regularit-webfont.woff")
|
|
12
|
+
format("woff");
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-display: fallback;
|
|
16
|
+
}
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: "proxima-nova-b";
|
|
19
|
+
src: url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-bold-webfont.woff")
|
|
20
|
+
format("woff");
|
|
21
|
+
font-weight: normal;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-display: fallback;
|
|
24
|
+
}
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: "ryman";
|
|
27
|
+
src: url("https://ucdcdn.azureedge.net/public/media/fonts/ryman-eco-webfont.woff")
|
|
28
|
+
format("woff");
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
font-style: normal;
|
|
31
|
+
font-display: fallback;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@theme {
|
|
35
|
+
--color-primary: rgba(88, 10, 36, 1); /* solid */
|
|
36
|
+
--color-primary-dark: rgba(65, 7, 27, 1); /* darker */
|
|
37
|
+
--color-primary-light: rgba(134, 15, 55, 1); /* lighter */
|
|
38
|
+
--color-bg: rgba(253, 246, 238, 1); /* background */
|
|
39
|
+
--color-primary-f: rgba(31, 31, 31, 0.99);
|
|
40
|
+
--color-secondary-f: rgba(31, 31, 31, 0.7);
|
|
41
|
+
--color-tertiary-f: rgba(31, 31, 31, 0.48);
|
|
42
|
+
--color-nav: rgba(255, 255, 255, 0.8);
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ucdavis/gunrock-tailwind",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Tailwind + DaisyUI preset for UC Davis branding",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "imports.css",
|
|
6
6
|
"files": [
|
|
7
|
-
"
|
|
8
|
-
"colors.js",
|
|
9
|
-
"daisyui-theme.js"
|
|
7
|
+
"imports.css"
|
|
10
8
|
],
|
|
11
9
|
"keywords": [
|
|
12
10
|
"tailwind",
|
|
13
|
-
"daisyui",
|
|
14
11
|
"ucdavis",
|
|
15
12
|
"theme"
|
|
16
13
|
],
|
|
17
14
|
"peerDependencies": {
|
|
18
15
|
"tailwindcss": "^4.0.0",
|
|
19
|
-
"daisyui": "^
|
|
16
|
+
"daisyui": "^5.0.0"
|
|
20
17
|
},
|
|
21
|
-
"license": "MIT"
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/ucdavis/gunrock-tailwind"
|
|
22
|
+
}
|
|
22
23
|
}
|
package/colors.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// colors.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
"primary-font": "rgb(31 31 31 / <alpha-value>)",
|
|
4
|
-
"secondary-font": "rgb(31 31 31 / <alpha-value>)",
|
|
5
|
-
"tertiary-font": "rgb(31 31 31 / <alpha-value>)",
|
|
6
|
-
"primary-white": "rgb(254 254 254 / <alpha-value>)",
|
|
7
|
-
"secondary-white": "rgb(254 254 254 / <alpha-value>)",
|
|
8
|
-
ucd: {
|
|
9
|
-
recpool: "rgb(111 207 235 / <alpha-value>)",
|
|
10
|
-
tahoe: "rgb(0 178 227 / <alpha-value>)",
|
|
11
|
-
gunrock: "rgb(0 71 186 / <alpha-value>)",
|
|
12
|
-
bodega: "rgb(0 58 93 / <alpha-value>)",
|
|
13
|
-
rain: "rgb(3 249 230 / <alpha-value>)",
|
|
14
|
-
arboretum: "rgb(0 196 179 / <alpha-value>)",
|
|
15
|
-
putahcreek: "rgb(0 142 170 / <alpha-value>)",
|
|
16
|
-
delta: "rgb(0 82 76 / <alpha-value>)",
|
|
17
|
-
farmersmarket: "rgb(170 218 145 / <alpha-value>)",
|
|
18
|
-
sage: "rgb(108 202 152 / <alpha-value>)",
|
|
19
|
-
quad: "rgb(61 174 43 / <alpha-value>)",
|
|
20
|
-
redwood: "rgb(38 96 65 / <alpha-value>)",
|
|
21
|
-
goldenstate: "rgb(255 255 59 / <alpha-value>)",
|
|
22
|
-
sunflower: "rgb(255 220 0 / <alpha-value>)",
|
|
23
|
-
poppy: "rgb(241 138 0 / <alpha-value>)",
|
|
24
|
-
california: "rgb(138 83 47 / <alpha-value>)",
|
|
25
|
-
rose: "rgb(255 129 137 / <alpha-value>)",
|
|
26
|
-
strawberry: "rgb(249 53 73 / <alpha-value>)",
|
|
27
|
-
doubledecker: "rgb(193 2 48 / <alpha-value>)",
|
|
28
|
-
merlot: "rgb(121 36 47 / <alpha-value>)",
|
|
29
|
-
thiebauldicing: "rgb(240 149 205 / <alpha-value>)",
|
|
30
|
-
redbud: "rgb(198 0 126 / <alpha-value>)",
|
|
31
|
-
pinot: "rgb(118 35 108 / <alpha-value>)",
|
|
32
|
-
cabernet: "rgb(72 18 104 / <alpha-value>)",
|
|
33
|
-
},
|
|
34
|
-
};
|
package/daisyui-theme.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const colors = require("./colors");
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
gunrock: {
|
|
5
|
-
...colors.ucd,
|
|
6
|
-
primary: colors.ucd.gunrock,
|
|
7
|
-
secondary: colors.ucd.sunflower,
|
|
8
|
-
accent: colors.ucd.arboretum,
|
|
9
|
-
neutral: colors.ucd.bodega,
|
|
10
|
-
"base-100": "#ffffff",
|
|
11
|
-
info: colors.ucd.rain,
|
|
12
|
-
success: colors.ucd.quad,
|
|
13
|
-
warning: colors.ucd.poppy,
|
|
14
|
-
error: colors.ucd.doubledecker,
|
|
15
|
-
},
|
|
16
|
-
};
|
package/index.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
const plugin = require("tailwindcss/plugin");
|
|
2
|
-
const daisyui = require("daisyui");
|
|
3
|
-
const colors = require("./colors");
|
|
4
|
-
const daisyuiTheme = require("./daisyui-theme");
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
content: [],
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
colors,
|
|
11
|
-
fontFamily: {
|
|
12
|
-
sans: ["proxima-nova-r", "Arial", "sans-serif"],
|
|
13
|
-
"sans-bold": ["proxima-nova-b", "Arial", "sans-serif"],
|
|
14
|
-
"sans-italic": ["proxima-nova-i", "Arial", "sans-serif"],
|
|
15
|
-
ryman: ["ryman", "Georgia", "serif"],
|
|
16
|
-
},
|
|
17
|
-
borderColor: {
|
|
18
|
-
DEFAULT: "#C8C7CC",
|
|
19
|
-
border: "#C8C7CC",
|
|
20
|
-
},
|
|
21
|
-
boxShadow: {
|
|
22
|
-
subtle:
|
|
23
|
-
"0 0 0 1px rgba(49, 49, 93, 0.03), 0 2px 5px 0 rgba(49, 49, 93, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.08)",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
plugins: [
|
|
28
|
-
plugin(({ addBase }) => {
|
|
29
|
-
addBase({
|
|
30
|
-
"@font-face": [
|
|
31
|
-
{
|
|
32
|
-
fontFamily: "proxima-nova-r",
|
|
33
|
-
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-regular-webfont.woff") format("woff")',
|
|
34
|
-
fontWeight: "normal",
|
|
35
|
-
fontStyle: "normal",
|
|
36
|
-
fontDisplay: "fallback",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
fontFamily: "proxima-nova-i",
|
|
40
|
-
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-regularit-webfont.woff") format("woff")',
|
|
41
|
-
fontWeight: "normal",
|
|
42
|
-
fontStyle: "normal",
|
|
43
|
-
fontDisplay: "fallback",
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
fontFamily: "proxima-nova-b",
|
|
47
|
-
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-bold-webfont.woff") format("woff")',
|
|
48
|
-
fontWeight: "normal",
|
|
49
|
-
fontStyle: "normal",
|
|
50
|
-
fontDisplay: "fallback",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
fontFamily: "ryman",
|
|
54
|
-
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/ryman-eco-webfont.woff") format("woff")',
|
|
55
|
-
fontWeight: "normal",
|
|
56
|
-
fontStyle: "normal",
|
|
57
|
-
fontDisplay: "fallback",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
});
|
|
61
|
-
}),
|
|
62
|
-
daisyui,
|
|
63
|
-
],
|
|
64
|
-
daisyui: {
|
|
65
|
-
themes: [daisyuiTheme],
|
|
66
|
-
},
|
|
67
|
-
};
|