-
-
Notifications
You must be signed in to change notification settings - Fork 86
Theme
tanthammar edited this page May 4, 2021
·
10 revisions
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.
The theme will be published to resources/css/
php artisan vendor:publish --tag=tall-form-theme-css
Add @import 'tall-theme'; after @import 'tailwindcss/components';.
@import 'tailwindcss/base';
@import 'tailwindcss/components'; //after components
@import 'tall-theme.css'; //omit .css if using sass
@import 'tailwindcss/utilities';npm run dev
- Duplicate the
tall-themefile. - Make your changes. (Don't change and class names.)
- Change the
@importintailwind.config.jsto your new theme file name. -
npm run devor prod -
Please share your new theme, by making a PR, or opening an issue.
Create a custom.css file.
/**
* Remove the default box-shadow for invalid elements to prevent inputs in Livewire components showing with a red border by default in Firefox.
* Src: https://github.com/laravel-frontend-presets/tall/issues/7
*/
input:invalid, textarea:invalid, select:invalid {
box-shadow: none;
}
input, select, textarea, button, div, a {
&:focus, &:active, &:hover {
outline: none;
}
}
/**
* For AlpineJS
*/
[x-cloak] {
display: none;
}Add @import 'custom.css'; after @import 'tailwindcss/components';.
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'custom.css'; //omit .css if using sass
@import 'tall-theme.css'; //omit .css if using sass
@import 'tailwindcss/utilities';npm run dev
Some classnames that are used by this package were removed in Tailwind 2.0.
They are added to the tall-theme.css and tall-forms-preset.js for backward compatibility.
You can continue using them just as in Tailwind 1.x
The tall-theme.css contains:
-
form-*classes from the former tailwindcustom-formsplugin. - all the
Tealcolors from Tailwind 1.x -
shadow-xsclass from Tailwind 1.x
Next step -> Wrapper Layout
- 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