-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extract tailwind config (#499)
* extract tailwind config package * use shared config in extension * use shared tailwind config in example app * use shared tailwind config in app * use shared tailwind config for landing page * remove important modifier
- Loading branch information
1 parent
44b8827
commit 0fe7f0c
Showing
12 changed files
with
68 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "@zodiac/tailwind-config", | ||
"private": true, | ||
"type": "module", | ||
"license": "UNLICENSED", | ||
"sideEffects": false, | ||
"packageManager": "[email protected]", | ||
"main": "./tailwind.config.mjs", | ||
"exports": { | ||
".": { | ||
"import": "./tailwind.config.mjs", | ||
"default": "./tailwind.config.mjs" | ||
} | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"tailwindcss": "3.4.17" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default { | ||
content: [ | ||
'./src/**/*.{tsx,html}', | ||
'./app/**/*.tsx', | ||
'./public/*.html', | ||
'./node_modules/@zodiac/ui/**/*.tsx', | ||
], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
mono: '"Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
import zodiacTailwindConfig from '@zodiac/tailwind-config' | ||
import type { Config } from 'tailwindcss' | ||
|
||
export default { | ||
content: [ | ||
'./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}', | ||
'../../packages/ui/**/*.tsx', | ||
], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
sans: [ | ||
'"Inter"', | ||
'ui-sans-serif', | ||
'system-ui', | ||
'sans-serif', | ||
'"Apple Color Emoji"', | ||
'"Segoe UI Emoji"', | ||
'"Segoe UI Symbol"', | ||
'"Noto Color Emoji"', | ||
], | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
} satisfies Config | ||
export default zodiacTailwindConfig satisfies Config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
import zodiacTailwindConfig from '@zodiac/tailwind-config' | ||
import type { Config } from 'tailwindcss' | ||
|
||
export default { | ||
content: ['./app/**/*.tsx'], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} satisfies Config | ||
export default zodiacTailwindConfig satisfies Config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
import zodiacTailwindConfig from '@zodiac/tailwind-config' | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
export default { | ||
...zodiacTailwindConfig, | ||
important: true, | ||
content: [ | ||
'./src/**/*.tsx', | ||
'./public/*.html', | ||
'./src/**/*.html', | ||
'../../packages/ui/**/*.tsx', | ||
], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
mono: '"Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
import zodiacTailwindConfig from '@zodiac/tailwind-config' | ||
import type { Config } from 'tailwindcss' | ||
|
||
const tailwindConfig = { | ||
important: true, | ||
content: ['./src/**/*.tsx', './index.html', '../../packages/ui/**/*.tsx'], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
mono: '"Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
...zodiacTailwindConfig, | ||
content: [...zodiacTailwindConfig.content, './index.html'], | ||
} satisfies Config | ||
|
||
export default tailwindConfig |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.