@ramdasiakshay01/tailwind-config 1.0.3 → 2.0.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.
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "@ramdasiakshay01/tailwind-config",
3
- "version": "1.0.3",
3
+ "version": "2.0.1",
4
4
  "description": "Shared Tailwind CSS v4 configuration for organization",
5
5
  "main": "index.css",
6
+ "exports": {
7
+ ".": "./src/index.css",
8
+ "./theme": "./src/theme/index.css",
9
+ "./theme/colors": "./src/theme/colors.css",
10
+ "./theme/radius": "./src/theme/radius.css",
11
+ "./theme/shadows": "./src/theme/shadows.css",
12
+ "./base": "./src/base/index.css",
13
+ "./base/reset": "./src/base/reset.css",
14
+ "./base/dark-mode": "./src/base/dark-mode.css"
15
+ },
6
16
  "files": [
7
- "index.css",
8
- "tailwind.config.js"
17
+ "src"
9
18
  ],
10
19
  "peerDependencies": {
11
20
  "tailwindcss": "^4.0.0"
@@ -0,0 +1,10 @@
1
+ @layer base {
2
+ :root {
3
+ color-scheme: light;
4
+ }
5
+
6
+ /* Support the .dark class on the html/body tag */
7
+ :is(.dark) {
8
+ color-scheme: dark;
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ /* Import all base modules */
2
+ @import './dark-mode.css';
3
+ @import './reset.css';
@@ -0,0 +1,8 @@
1
+ /* Global reset and base styles */
2
+ html,
3
+ body {
4
+ margin: 0;
5
+ padding: 0;
6
+ background-color: var(--color-bg);
7
+ color: var(--color-text-primary);
8
+ }
package/src/index.css ADDED
@@ -0,0 +1,3 @@
1
+ @import 'tailwindcss';
2
+ @import './theme/index.css';
3
+ @import './base/index.css';
@@ -0,0 +1,23 @@
1
+ @theme {
2
+ /* Background colors */
3
+ --color-bg: light-dark(#f9fafb, #0f172a);
4
+ --color-surface: light-dark(#ffffff, #1e293b);
5
+ --color-border: light-dark(#e5e7eb, #334155);
6
+
7
+ /* Text colors */
8
+ --color-text-primary: light-dark(#1f2937, #f1f5f9);
9
+ --color-text-secondary: light-dark(#4b5563, #cbd5e1);
10
+
11
+ /* Primary brand colors */
12
+ --color-primary: light-dark(#0064e0, #0064e0);
13
+ --color-primary-hover: light-dark(#3b5b92, #60a5fa);
14
+
15
+ /* Secondary brand colors */
16
+ --color-secondary: light-dark(#2f9e44, #22c55e);
17
+ --color-secondary-hover: light-dark(#4cc46a, #4ade80);
18
+
19
+ /* Semantic colors */
20
+ --color-success: #16a34a;
21
+ --color-warning: #f59e0b;
22
+ --color-error: #dc2626;
23
+ }
@@ -0,0 +1,4 @@
1
+ /* Import all theme modules */
2
+ @import './colors.css';
3
+ @import './radius.css';
4
+ @import './shadows.css';
@@ -0,0 +1,6 @@
1
+ @theme {
2
+ /* Border radius tokens */
3
+ --radius-sm: 6px;
4
+ --radius-md: 10px;
5
+ --radius-lg: 16px;
6
+ }
@@ -0,0 +1,5 @@
1
+ @theme {
2
+ /* Shadow tokens */
3
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
4
+ --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
5
+ }
package/index.css DELETED
@@ -1,53 +0,0 @@
1
- @import "tailwindcss";
2
-
3
- @theme {
4
- /* Colors */
5
- --color-primary-50: #eff6ff;
6
- --color-primary-100: #dbeafe;
7
- --color-primary-200: #bfdbfe;
8
- --color-primary-500: #3b82f6;
9
- --color-primary-600: #2563eb;
10
- --color-primary-700: #1d4ed8;
11
- --color-primary-900: #1e3a8a;
12
-
13
- --color-secondary-500: #8b5cf6;
14
- --color-secondary-600: #7c3aed;
15
-
16
- /* Spacing */
17
- --spacing-18: 4.5rem;
18
- --spacing-22: 5.5rem;
19
-
20
- /* Font families */
21
- --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
22
- --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
23
-
24
- /* Font sizes */
25
- --font-size-xs: 0.75rem;
26
- --font-size-sm: 0.875rem;
27
- --font-size-base: 1rem;
28
- --font-size-lg: 1.125rem;
29
- --font-size-xl: 1.25rem;
30
- --font-size-2xl: 1.5rem;
31
-
32
- /* Border radius */
33
- --radius-sm: 0.25rem;
34
- --radius-md: 0.375rem;
35
- --radius-lg: 0.5rem;
36
- --radius-xl: 0.75rem;
37
-
38
- /* Breakpoints */
39
- --breakpoint-sm: 640px;
40
- --breakpoint-md: 768px;
41
- --breakpoint-lg: 1024px;
42
- --breakpoint-xl: 1280px;
43
- --breakpoint-2xl: 1536px;
44
- }
45
-
46
- /* Custom utilities */
47
- @utility container-narrow {
48
- max-width: 960px;
49
- margin-left: auto;
50
- margin-right: auto;
51
- padding-left: 1rem;
52
- padding-right: 1rem;
53
- }
@@ -1,12 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- export default {
3
- darkMode: 'class',
4
- content: [], // IMPORTANT: leave empty
5
- corePlugins: {
6
- preflight: false,
7
- },
8
- theme: {
9
- extend: {},
10
- },
11
- plugins: [],
12
- };