@bison-lab/tailwind-preset 0.1.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.
@@ -0,0 +1,7 @@
1
+ import { Config } from "tailwindcss";
2
+
3
+ //#region src/index.d.ts
4
+ declare const bisonPreset: Partial<Config>;
5
+ //#endregion
6
+ export { bisonPreset as default };
7
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAGM,WAAA,EAAa,OAAA,CAAQ,MAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,112 @@
1
+ import animatePlugin from "tailwindcss-animate";
2
+ //#region src/index.ts
3
+ const bisonPreset = {
4
+ darkMode: "class",
5
+ theme: { extend: {
6
+ colors: {
7
+ border: "hsl(var(--border))",
8
+ input: "hsl(var(--input))",
9
+ ring: "hsl(var(--ring))",
10
+ background: "hsl(var(--background))",
11
+ foreground: "hsl(var(--foreground))",
12
+ primary: {
13
+ DEFAULT: "hsl(var(--primary))",
14
+ foreground: "hsl(var(--primary-foreground))"
15
+ },
16
+ secondary: {
17
+ DEFAULT: "hsl(var(--secondary))",
18
+ foreground: "hsl(var(--secondary-foreground))"
19
+ },
20
+ destructive: {
21
+ DEFAULT: "hsl(var(--destructive))",
22
+ foreground: "hsl(var(--destructive-foreground))"
23
+ },
24
+ muted: {
25
+ DEFAULT: "hsl(var(--muted))",
26
+ foreground: "hsl(var(--muted-foreground))"
27
+ },
28
+ accent: {
29
+ DEFAULT: "hsl(var(--accent))",
30
+ foreground: "hsl(var(--accent-foreground))"
31
+ },
32
+ popover: {
33
+ DEFAULT: "hsl(var(--popover))",
34
+ foreground: "hsl(var(--popover-foreground))"
35
+ },
36
+ card: {
37
+ DEFAULT: "hsl(var(--card))",
38
+ foreground: "hsl(var(--card-foreground))"
39
+ }
40
+ },
41
+ borderRadius: {
42
+ lg: "var(--radius-lg)",
43
+ md: "var(--radius-md)",
44
+ sm: "var(--radius-sm)",
45
+ xl: "var(--radius-xl)",
46
+ full: "var(--radius-full)"
47
+ },
48
+ boxShadow: {
49
+ sm: "var(--shadow-sm)",
50
+ DEFAULT: "var(--shadow)",
51
+ md: "var(--shadow-md)",
52
+ lg: "var(--shadow-lg)",
53
+ xl: "var(--shadow-xl)"
54
+ },
55
+ transitionDuration: {
56
+ fast: "var(--duration-fast)",
57
+ normal: "var(--duration-normal)",
58
+ slow: "var(--duration-slow)"
59
+ },
60
+ transitionTimingFunction: {
61
+ default: "var(--ease-default)",
62
+ in: "var(--ease-in)",
63
+ out: "var(--ease-out)",
64
+ "in-out": "var(--ease-in-out)"
65
+ },
66
+ zIndex: {
67
+ dropdown: "var(--z-dropdown)",
68
+ sticky: "var(--z-sticky)",
69
+ fixed: "var(--z-fixed)",
70
+ "modal-backdrop": "var(--z-modal-backdrop)",
71
+ modal: "var(--z-modal)",
72
+ popover: "var(--z-popover)",
73
+ tooltip: "var(--z-tooltip)",
74
+ toast: "var(--z-toast)"
75
+ },
76
+ fontSize: {
77
+ xs: ["0.75rem", { lineHeight: "1rem" }],
78
+ sm: ["0.875rem", { lineHeight: "1.25rem" }],
79
+ base: ["1rem", { lineHeight: "1.5rem" }],
80
+ lg: ["1.125rem", { lineHeight: "1.75rem" }],
81
+ xl: ["1.25rem", { lineHeight: "1.75rem" }],
82
+ "2xl": ["1.5rem", { lineHeight: "2rem" }],
83
+ "3xl": ["1.875rem", { lineHeight: "2.25rem" }],
84
+ "4xl": ["2.25rem", { lineHeight: "2.5rem" }]
85
+ },
86
+ fontWeight: {
87
+ normal: "var(--font-weight-normal)",
88
+ medium: "var(--font-weight-medium)",
89
+ semibold: "var(--font-weight-semibold)",
90
+ bold: "var(--font-weight-bold)"
91
+ },
92
+ keyframes: {
93
+ "accordion-down": {
94
+ from: { height: "0" },
95
+ to: { height: "var(--radix-accordion-content-height)" }
96
+ },
97
+ "accordion-up": {
98
+ from: { height: "var(--radix-accordion-content-height)" },
99
+ to: { height: "0" }
100
+ }
101
+ },
102
+ animation: {
103
+ "accordion-down": "accordion-down var(--duration-normal) var(--ease-out)",
104
+ "accordion-up": "accordion-up var(--duration-normal) var(--ease-out)"
105
+ }
106
+ } },
107
+ plugins: [animatePlugin]
108
+ };
109
+ //#endregion
110
+ export { bisonPreset as default };
111
+
112
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\nimport animatePlugin from \"tailwindcss-animate\";\n\nconst bisonPreset: Partial<Config> = {\n darkMode: \"class\",\n theme: {\n extend: {\n colors: {\n border: \"hsl(var(--border))\",\n input: \"hsl(var(--input))\",\n ring: \"hsl(var(--ring))\",\n background: \"hsl(var(--background))\",\n foreground: \"hsl(var(--foreground))\",\n primary: {\n DEFAULT: \"hsl(var(--primary))\",\n foreground: \"hsl(var(--primary-foreground))\",\n },\n secondary: {\n DEFAULT: \"hsl(var(--secondary))\",\n foreground: \"hsl(var(--secondary-foreground))\",\n },\n destructive: {\n DEFAULT: \"hsl(var(--destructive))\",\n foreground: \"hsl(var(--destructive-foreground))\",\n },\n muted: {\n DEFAULT: \"hsl(var(--muted))\",\n foreground: \"hsl(var(--muted-foreground))\",\n },\n accent: {\n DEFAULT: \"hsl(var(--accent))\",\n foreground: \"hsl(var(--accent-foreground))\",\n },\n popover: {\n DEFAULT: \"hsl(var(--popover))\",\n foreground: \"hsl(var(--popover-foreground))\",\n },\n card: {\n DEFAULT: \"hsl(var(--card))\",\n foreground: \"hsl(var(--card-foreground))\",\n },\n },\n borderRadius: {\n lg: \"var(--radius-lg)\",\n md: \"var(--radius-md)\",\n sm: \"var(--radius-sm)\",\n xl: \"var(--radius-xl)\",\n full: \"var(--radius-full)\",\n },\n boxShadow: {\n sm: \"var(--shadow-sm)\",\n DEFAULT: \"var(--shadow)\",\n md: \"var(--shadow-md)\",\n lg: \"var(--shadow-lg)\",\n xl: \"var(--shadow-xl)\",\n },\n transitionDuration: {\n fast: \"var(--duration-fast)\",\n normal: \"var(--duration-normal)\",\n slow: \"var(--duration-slow)\",\n },\n transitionTimingFunction: {\n default: \"var(--ease-default)\",\n in: \"var(--ease-in)\",\n out: \"var(--ease-out)\",\n \"in-out\": \"var(--ease-in-out)\",\n },\n zIndex: {\n dropdown: \"var(--z-dropdown)\",\n sticky: \"var(--z-sticky)\",\n fixed: \"var(--z-fixed)\",\n \"modal-backdrop\": \"var(--z-modal-backdrop)\",\n modal: \"var(--z-modal)\",\n popover: \"var(--z-popover)\",\n tooltip: \"var(--z-tooltip)\",\n toast: \"var(--z-toast)\",\n },\n fontSize: {\n xs: [\"0.75rem\", { lineHeight: \"1rem\" }],\n sm: [\"0.875rem\", { lineHeight: \"1.25rem\" }],\n base: [\"1rem\", { lineHeight: \"1.5rem\" }],\n lg: [\"1.125rem\", { lineHeight: \"1.75rem\" }],\n xl: [\"1.25rem\", { lineHeight: \"1.75rem\" }],\n \"2xl\": [\"1.5rem\", { lineHeight: \"2rem\" }],\n \"3xl\": [\"1.875rem\", { lineHeight: \"2.25rem\" }],\n \"4xl\": [\"2.25rem\", { lineHeight: \"2.5rem\" }],\n },\n fontWeight: {\n normal: \"var(--font-weight-normal)\",\n medium: \"var(--font-weight-medium)\",\n semibold: \"var(--font-weight-semibold)\",\n bold: \"var(--font-weight-bold)\",\n },\n keyframes: {\n \"accordion-down\": {\n from: { height: \"0\" },\n to: { height: \"var(--radix-accordion-content-height)\" },\n },\n \"accordion-up\": {\n from: { height: \"var(--radix-accordion-content-height)\" },\n to: { height: \"0\" },\n },\n },\n animation: {\n \"accordion-down\": \"accordion-down var(--duration-normal) var(--ease-out)\",\n \"accordion-up\": \"accordion-up var(--duration-normal) var(--ease-out)\",\n },\n },\n },\n plugins: [animatePlugin],\n};\n\nexport default bisonPreset;\n"],"mappings":";;AAGA,MAAM,cAA+B;CACnC,UAAU;CACV,OAAO,EACL,QAAQ;EACN,QAA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ACrB,IAAI,EAAE,QAAQ,yCAAyC;IACxD;GACD,gBAAgB;IACd,MAAM,EAAE,QAAQ,yCAAyC;IACzD,IAAI,EAAE,QAAQ,KAAK;IACpB;GACF;EACD,WAAW;GACT,kBAAkB;GAClB,gBAAgB;GACjB;EACF,EACF;CACD,SAAS,CAAC,cAAc;CACzB"}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@bison-lab/tailwind-preset",
3
+ "version": "0.1.0",
4
+ "description": "Tailwind CSS preset for Bison Lab component library",
5
+ "type": "module",
6
+ "main": "./dist/index.mjs",
7
+ "types": "./dist/index.d.mts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "types": "./dist/index.d.mts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "dependencies": {
18
+ "tailwindcss-animate": "^1.0.7"
19
+ },
20
+ "peerDependencies": {
21
+ "tailwindcss": "^3.4.0 || ^4.0.0"
22
+ },
23
+ "devDependencies": {
24
+ "tailwindcss": "^3.4.0",
25
+ "tsdown": "^0.21.0",
26
+ "typescript": "^5.9.3"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "scripts": {
32
+ "build": "tsdown",
33
+ "dev": "tsdown --watch",
34
+ "clean": "rm -rf dist",
35
+ "typecheck": "tsc --noEmit"
36
+ }
37
+ }