-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add tailwind preset for nuxt (#591)
* feat: add tailwind preset for nuxt * feat: add tailwind preset for next * feat: add default css variables to preset * chore: cleanup nuxt tailwind config * fix: switch nuxt to use packaged example styles * feat: update previews with tailwind preset * chore: update tailwind preset package * chore: update turbo.json for tailwind config * chore: tailwind preview turbo + tests
- Loading branch information
1 parent
c9c5e01
commit c52858a
Showing
31 changed files
with
594 additions
and
795 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
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,5 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;700&family=Red+Hat+Text:ital,wght@0,400;0,500;0,700;1,300&display=swap'); | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file was deleted.
Oops, something went wrong.
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,11 +1,16 @@ | ||
const vsfTypography = require('@storefront-ui/typography'); | ||
/** @type {import('tailwindcss').Config} */ | ||
const config = require('@storefront-ui/tailwind-config/index.json'); | ||
const { tailwindConfig } = require('@storefront-ui/tailwind-config'); | ||
|
||
module.exports = { | ||
...config, | ||
content: [ | ||
...config.content, | ||
'../../../node_modules/@storefront-ui/react/**/*.{ts,tsx}', | ||
], | ||
plugins: [vsfTypography] | ||
presets: [tailwindConfig], | ||
content: ['./**/*.ts', './**/*.tsx', '../../../node_modules/@storefront-ui/react/**/*.tsx'], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
sans: 'Red Hat Text, sans-serif', | ||
}, | ||
}, | ||
}, | ||
plugins: [vsfTypography], | ||
}; |
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,4 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;700&family=Red+Hat+Text:ital,wght@0,400;0,500;0,700;1,300&display=swap'); | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file was deleted.
Oops, something went wrong.
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
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,13 +1,16 @@ | ||
import type { Config } from 'tailwindcss'; | ||
import vsfTypography from '@storefront-ui/typography'; | ||
import config from '@storefront-ui/tailwind-config/index.json'; | ||
import { tailwindConfig } from '@storefront-ui/tailwind-config'; | ||
|
||
export default <Config>{ | ||
...(config as unknown as Config), | ||
content: [ | ||
...config.content, | ||
'../../../node_modules/@storefront-ui/vue/shared/**/*.ts', | ||
'../../../node_modules/@storefront-ui/vue/components/**/*.{ts,vue}', | ||
], | ||
presets: [tailwindConfig], | ||
content: ['./**/*.vue', './**/*.ts', './**/*.tsx', '../../../node_modules/@storefront-ui/vue/**/*.vue'], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
sans: 'Red Hat Text, sans-serif', | ||
}, | ||
}, | ||
}, | ||
plugins: [vsfTypography], | ||
}; |
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,4 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;700&family=Red+Hat+Text:ital,wght@0,400;0,500;0,700;1,300&display=swap"); | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file was deleted.
Oops, something went wrong.
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,14 +1,15 @@ | ||
import { createApp } from 'vue' | ||
import { createPinia } from 'pinia' | ||
import { createApp } from "vue"; | ||
import { createPinia } from "pinia"; | ||
|
||
import App from './App.vue' | ||
import router from './router' | ||
import App from "./App.vue"; | ||
import router from "./router"; | ||
|
||
import './assets/main.css' | ||
import "./assets/main.css"; | ||
import "./assets/global.css"; | ||
|
||
const app = createApp(App) | ||
const app = createApp(App); | ||
|
||
app.use(createPinia()) | ||
app.use(router) | ||
app.use(createPinia()); | ||
app.use(router); | ||
|
||
app.mount('#app') | ||
app.mount("#app"); |
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
Oops, something went wrong.