@apollo-deploy/tailwind-config 1.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/index.js +51 -0
- package/package.json +14 -0
- package/preset.js +37 -0
package/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Tailwind CSS configuration for the Apollo monorepo
|
|
3
|
+
*
|
|
4
|
+
* This configuration is used by all three applications:
|
|
5
|
+
* - apollo-app
|
|
6
|
+
* - apollo-auth
|
|
7
|
+
* - apollo-marketing
|
|
8
|
+
*
|
|
9
|
+
* All applications use Tailwind CSS 4 with CSS variables defined in their globals.css
|
|
10
|
+
* The theme is defined using CSS custom properties and @theme inline directive
|
|
11
|
+
*
|
|
12
|
+
* Common patterns across all apps:
|
|
13
|
+
* - CSS variables for colors (--background, --foreground, --primary, etc.)
|
|
14
|
+
* - Dark mode support via .dark class and @custom-variant
|
|
15
|
+
* - Custom radius values (sm, md, lg, xl)
|
|
16
|
+
* - Chart colors (chart-1 through chart-5)
|
|
17
|
+
* - Sidebar colors (for apollo-app)
|
|
18
|
+
* - Shadow and spacing utilities
|
|
19
|
+
* - Font families (sans, serif, mono)
|
|
20
|
+
*
|
|
21
|
+
* Note: With Tailwind CSS 4, most theme configuration is done via CSS variables
|
|
22
|
+
* in the application's globals.css file using the @theme inline directive.
|
|
23
|
+
* This shared config is primarily for plugins and any JavaScript-based configuration.
|
|
24
|
+
*
|
|
25
|
+
* Each application should:
|
|
26
|
+
* 1. Import this config
|
|
27
|
+
* 2. Define their content paths
|
|
28
|
+
* 3. Add any app-specific overrides if needed
|
|
29
|
+
*
|
|
30
|
+
* @type {import('tailwindcss').Config}
|
|
31
|
+
*/
|
|
32
|
+
module.exports = {
|
|
33
|
+
theme: {
|
|
34
|
+
extend: {
|
|
35
|
+
// Theme extensions are handled via CSS variables in each app's globals.css
|
|
36
|
+
// using the @theme inline directive in Tailwind CSS 4
|
|
37
|
+
//
|
|
38
|
+
// Common CSS variables across all apps:
|
|
39
|
+
// - Colors: background, foreground, card, popover, primary, secondary, muted, accent, destructive, border, input, ring
|
|
40
|
+
// - Chart colors: chart-1 through chart-5
|
|
41
|
+
// - Radius: sm, md, lg, xl (calculated from --radius)
|
|
42
|
+
// - Fonts: sans, serif, mono
|
|
43
|
+
// - Shadows: 2xs, xs, sm, md, lg, xl, 2xl
|
|
44
|
+
// - Tracking: tighter, tight, normal, wide, wider, widest
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
plugins: [
|
|
48
|
+
// tw-animate-css provides animation utilities
|
|
49
|
+
// This is the only shared plugin across all applications
|
|
50
|
+
],
|
|
51
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apollo-deploy/tailwind-config",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "restricted"
|
|
6
|
+
},
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tw-animate-css": "^1.4.0"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"tailwindcss": "^4"
|
|
13
|
+
}
|
|
14
|
+
}
|
package/preset.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Tailwind CSS preset for the Apollo monorepo
|
|
3
|
+
*
|
|
4
|
+
* This configuration is used by all three applications:
|
|
5
|
+
* - apollo-app
|
|
6
|
+
* - apollo-auth
|
|
7
|
+
* - apollo-marketing
|
|
8
|
+
*
|
|
9
|
+
* All applications use Tailwind CSS 4 with CSS variables defined in their globals.css
|
|
10
|
+
* The theme is defined using CSS custom properties and @theme inline directive
|
|
11
|
+
*
|
|
12
|
+
* Common patterns:
|
|
13
|
+
* - CSS variables for colors (--background, --foreground, --primary, etc.)
|
|
14
|
+
* - Dark mode support via .dark class
|
|
15
|
+
* - Custom radius values
|
|
16
|
+
* - Chart colors (chart-1 through chart-5)
|
|
17
|
+
* - Sidebar colors
|
|
18
|
+
* - Shadow and spacing utilities
|
|
19
|
+
*
|
|
20
|
+
* Note: With Tailwind CSS 4, most theme configuration is done via CSS variables
|
|
21
|
+
* in the application's globals.css file using the @theme inline directive.
|
|
22
|
+
* This preset file is primarily for shared plugins and any JavaScript-based configuration.
|
|
23
|
+
*
|
|
24
|
+
* @type {import('tailwindcss').Config}
|
|
25
|
+
*/
|
|
26
|
+
module.exports = {
|
|
27
|
+
theme: {
|
|
28
|
+
extend: {
|
|
29
|
+
// Theme extensions are handled via CSS variables in each app's globals.css
|
|
30
|
+
// using the @theme inline directive in Tailwind CSS 4
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
plugins: [
|
|
34
|
+
// tw-animate-css provides animation utilities
|
|
35
|
+
// This is the only shared plugin across all applications
|
|
36
|
+
],
|
|
37
|
+
}
|