generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When styling components with Tailwind class make sure to run `yarn dev` to let tailwind watch the component files and include the needed CSS. There is also support for `yarn build` which is the same as `yarn dev` but without the watch option.
- Loading branch information
Showing
10 changed files
with
824 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
*, ::before, ::after { | ||
--tw-border-spacing-x: 0; | ||
--tw-border-spacing-y: 0; | ||
--tw-translate-x: 0; | ||
--tw-translate-y: 0; | ||
--tw-rotate: 0; | ||
--tw-skew-x: 0; | ||
--tw-skew-y: 0; | ||
--tw-scale-x: 1; | ||
--tw-scale-y: 1; | ||
--tw-pan-x: ; | ||
--tw-pan-y: ; | ||
--tw-pinch-zoom: ; | ||
--tw-scroll-snap-strictness: proximity; | ||
--tw-gradient-from-position: ; | ||
--tw-gradient-via-position: ; | ||
--tw-gradient-to-position: ; | ||
--tw-ordinal: ; | ||
--tw-slashed-zero: ; | ||
--tw-numeric-figure: ; | ||
--tw-numeric-spacing: ; | ||
--tw-numeric-fraction: ; | ||
--tw-ring-inset: ; | ||
--tw-ring-offset-width: 0px; | ||
--tw-ring-offset-color: #fff; | ||
--tw-ring-color: rgb(59 130 246 / 0.5); | ||
--tw-ring-offset-shadow: 0 0 #0000; | ||
--tw-ring-shadow: 0 0 #0000; | ||
--tw-shadow: 0 0 #0000; | ||
--tw-shadow-colored: 0 0 #0000; | ||
--tw-blur: ; | ||
--tw-brightness: ; | ||
--tw-contrast: ; | ||
--tw-grayscale: ; | ||
--tw-hue-rotate: ; | ||
--tw-invert: ; | ||
--tw-saturate: ; | ||
--tw-sepia: ; | ||
--tw-drop-shadow: ; | ||
--tw-backdrop-blur: ; | ||
--tw-backdrop-brightness: ; | ||
--tw-backdrop-contrast: ; | ||
--tw-backdrop-grayscale: ; | ||
--tw-backdrop-hue-rotate: ; | ||
--tw-backdrop-invert: ; | ||
--tw-backdrop-opacity: ; | ||
--tw-backdrop-saturate: ; | ||
--tw-backdrop-sepia: | ||
} | ||
|
||
::backdrop { | ||
--tw-border-spacing-x: 0; | ||
--tw-border-spacing-y: 0; | ||
--tw-translate-x: 0; | ||
--tw-translate-y: 0; | ||
--tw-rotate: 0; | ||
--tw-skew-x: 0; | ||
--tw-skew-y: 0; | ||
--tw-scale-x: 1; | ||
--tw-scale-y: 1; | ||
--tw-pan-x: ; | ||
--tw-pan-y: ; | ||
--tw-pinch-zoom: ; | ||
--tw-scroll-snap-strictness: proximity; | ||
--tw-gradient-from-position: ; | ||
--tw-gradient-via-position: ; | ||
--tw-gradient-to-position: ; | ||
--tw-ordinal: ; | ||
--tw-slashed-zero: ; | ||
--tw-numeric-figure: ; | ||
--tw-numeric-spacing: ; | ||
--tw-numeric-fraction: ; | ||
--tw-ring-inset: ; | ||
--tw-ring-offset-width: 0px; | ||
--tw-ring-offset-color: #fff; | ||
--tw-ring-color: rgb(59 130 246 / 0.5); | ||
--tw-ring-offset-shadow: 0 0 #0000; | ||
--tw-ring-shadow: 0 0 #0000; | ||
--tw-shadow: 0 0 #0000; | ||
--tw-shadow-colored: 0 0 #0000; | ||
--tw-blur: ; | ||
--tw-brightness: ; | ||
--tw-contrast: ; | ||
--tw-grayscale: ; | ||
--tw-hue-rotate: ; | ||
--tw-invert: ; | ||
--tw-saturate: ; | ||
--tw-sepia: ; | ||
--tw-drop-shadow: ; | ||
--tw-backdrop-blur: ; | ||
--tw-backdrop-brightness: ; | ||
--tw-backdrop-contrast: ; | ||
--tw-backdrop-grayscale: ; | ||
--tw-backdrop-hue-rotate: ; | ||
--tw-backdrop-invert: ; | ||
--tw-backdrop-opacity: ; | ||
--tw-backdrop-saturate: ; | ||
--tw-backdrop-sepia: | ||
} | ||
|
||
#ohdear :is(.block) { | ||
display: block | ||
} | ||
|
||
#ohdear :is(.flex) { | ||
display: flex | ||
} | ||
|
||
#ohdear :is(.grid) { | ||
display: grid | ||
} | ||
|
||
#ohdear :is(.h-2) { | ||
height: 0.5rem | ||
} | ||
|
||
#ohdear :is(.max-w-\[1px\]) { | ||
max-width: 1px | ||
} | ||
|
||
#ohdear :is(.grid-cols-3) { | ||
grid-template-columns: repeat(3, minmax(0, 1fr)) | ||
} | ||
|
||
#ohdear :is(.flex-col) { | ||
flex-direction: column | ||
} | ||
|
||
#ohdear :is(.justify-center) { | ||
justify-content: center | ||
} | ||
|
||
#ohdear :is(.gap-3) { | ||
gap: 0.75rem | ||
} | ||
|
||
#ohdear :is(.gap-6) { | ||
gap: 1.5rem | ||
} | ||
|
||
#ohdear :is(.truncate) { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap | ||
} | ||
|
||
#ohdear :is(.whitespace-nowrap) { | ||
white-space: nowrap | ||
} | ||
|
||
#ohdear :is(.text-center) { | ||
text-align: center | ||
} | ||
|
||
#ohdear :is(.text-right) { | ||
text-align: right | ||
} | ||
|
||
#ohdear :is(.text-xl) { | ||
font-size: 1.25rem; | ||
line-height: 1.75rem | ||
} | ||
|
||
#ohdear :is(.text-xs) { | ||
font-size: 0.75rem; | ||
line-height: 1rem | ||
} | ||
|
||
#ohdear :is(.font-bold) { | ||
font-weight: 700 | ||
} | ||
|
||
#ohdear :is(.uppercase) { | ||
text-transform: uppercase | ||
} | ||
|
||
#ohdear :is(.tabular-nums) { | ||
--tw-numeric-spacing: tabular-nums; | ||
font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction) | ||
} | ||
|
||
#ohdear :is(.text-gray-500) { | ||
--tw-text-opacity: 1; | ||
color: rgb(107 114 128 / var(--tw-text-opacity)) | ||
} | ||
|
||
#ohdear :is(.text-gray-700) { | ||
--tw-text-opacity: 1; | ||
color: rgb(55 65 81 / var(--tw-text-opacity)) | ||
} | ||
|
||
#ohdear :is(.text-gray-900) { | ||
--tw-text-opacity: 1; | ||
color: rgb(17 24 39 / var(--tw-text-opacity)) | ||
} | ||
|
||
#ohdear :is(.first\:h-0:first-child) { | ||
height: 0px | ||
} | ||
|
||
#ohdear :is(.dark .dark\:text-gray-100) { | ||
--tw-text-opacity: 1; | ||
color: rgb(243 244 246 / var(--tw-text-opacity)) | ||
} | ||
|
||
#ohdear :is(.dark .dark\:text-gray-300) { | ||
--tw-text-opacity: 1; | ||
color: rgb(209 213 219 / var(--tw-text-opacity)) | ||
} | ||
|
||
#ohdear :is(.dark .dark\:text-gray-400) { | ||
--tw-text-opacity: 1; | ||
color: rgb(156 163 175 / var(--tw-text-opacity)) | ||
} |
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,9 @@ | ||
{ | ||
"scripts": { | ||
"dev": "npx tailwindcss -i ./resources/css/style.css -o ./dist/output.css --watch", | ||
"build": "npx tailwindcss -i ./resources/css/style.css -o ./dist/output.css" | ||
}, | ||
"devDependencies": { | ||
"tailwindcss": "^3.3.6" | ||
} | ||
} |
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,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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
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,13 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
darkMode: "class", | ||
important: "#ohdear", | ||
content: ["./resources/**/*.blade.php"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
corePlugins: { | ||
preflight: false, | ||
}, | ||
}; |
Oops, something went wrong.