-
-
Notifications
You must be signed in to change notification settings - Fork 86
Theme
tanthammar edited this page Oct 24, 2020
·
10 revisions
The documentation on this page assumes that you went through the steps on the "Tailwind Config" page.
The package provides a theme file. You can easily create your own themes by copying that file. If you create a new theme, PLEASE SHARE it. Create a pull request or an issue and it will be added to the package.
If you are on Tailwind 1.x you need to add support for @apply
with complex classes,
including responsive and pseudo-class variants.
This will be available under a feature flag in Tailwind 1.x until it becomes the default in Tailwind 2.0. src
Adding this to tailwind.config.js
means that you can use complex classes like :hover
, :sm
and :focus
with @apply
// tailwind.config.js
module.exports = {
experimental: {
applyComplexClasses: true,
},
}
The theme will be published to resources/css/
php artisan vendor:publish --tag=tall-form-theme-css
The theme will be published to resources/sass/
php artisan vendor:publish --tag=tall-form-theme-sass
Add @import 'tall-theme';
after @import 'tailwindcss/components';
.
@import 'tailwindcss/base';
@import 'tailwindcss/components'; //after components
@import 'custom';
@import 'tall-theme';
@import 'tailwindcss/utilities';
npm run dev
- Duplicate the
tall-theme
file. - Make your changes. (Don't change andy class names.)
- Change the
@import
intailwind.config.js
to your new theme file name. -
npm run dev
or prod -
Please share your new theme
, by making a PR, or opening an issue.
- Installation
- Requirements
- v5 Upgrade Guide
- v6 Upgrade Guide
- v7 Upgrade Guide
- Support
- Quickstart
- Manual installation
- Optional
- Form component
- Field
- Field types
- Example Form
- Blade Components
- Notifications