TALL-forms
  • TALL-forms
  • Installation
    • Quickstart: Artisan cmd
    • Manual installation
      • Package
      • Translations
      • Css & Theme
      • Javascript
      • Tailwind
      • Laravel Mix
      • Wrapper view
      • Laravel Jetstream/Breeze
  • Upgrade v7 to v8
    • Configuration changes
    • Component & Field changes
    • Blade view changes
    • Notification changes
    • Styling changes
  • Concept
    • Configuration
    • Validation
    • Styling
    • Icons
    • Javascript
    • Layout vs Wrapper
    • Model binding
    • Manually saving data
    • Extend Blade Components
  • Create Forms
    • Form Data
    • Form Types
      • Standard form
      • As modal
      • Without buttons
      • Fields only
      • Headless
    • Form attributes
    • Form buttons
    • Form slots
    • Form methods
    • Lifecycle hooks
    • Render a form
    • Mass generate
  • Fields
    • Declaration
    • Labels
    • Field Slots
    • Field methods
    • Custom field attributes
    • Conditional field
    • Custom view
    • Custom field
    • Custom Livewire component
    • Relations
    • Fields
      • Checkbox
      • Checkboxes
      • FileUpload
      • Honeypot
      • ImageCropper
      • Input
      • Password
      • InputArray
      • KeyVal (array)
      • Radio
      • Range
      • Repeater (array)
      • Search
      • Select & Multiselect
      • Tags
      • TagsSearch
      • Textarea
      • Trix
      • SpatieTags
    • Sponsor Fields
      • More Inputs
      • CKEditor
      • DatePicker
      • Heading
      • Markdown
      • Panels
      • SearchList
      • SelectOptGroup
      • Tabs
      • Trix, file-uploads
  • Blade components
    • Notifications
    • Label wrapper
    • Button
    • Modal blade component
    • Modal form blade component
  • Examples
    • Input examples
    • Array fields example
Powered by GitBook
On this page
  • Publish the theme files
  • Add to layout
  • Optional custom.css
  • Add to app.css
  • Warning!
  • Potential css class naming conflicts

Was this helpful?

  1. Installation
  2. Manual installation

Css & Theme

Publish the theme files

If you make a new theme, please share it, by making a PR, or opening an issue

Tailwind 3

php artisan vendor:publish --tag=tall-form-theme-css

Tailwind 2

php artisan vendor:publish --tag=tall-form-theme-css-tw-2

Add to layout

app.blade.php

<header>
...
    @livewireStyles 
    @stack("styles")
...
</header>

Optional custom.css

resources/css/custom.css

input:invalid, textarea:invalid, select:invalid {
    box-shadow: none;
}

input, select, textarea, button, div, a {
    &:focus, &:active, &:hover {
        outline: none;
    }
}

[x-cloak] {
    display: none;
}

Add to app.css

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'custom.css'; //<-optional
@import 'tall-theme.css'; //<-required
@import 'tailwindcss/utilities';

Warning!

Potential css class naming conflicts

form-* classes from the old tailwind custom-forms plugin, were removed with Tailwind 2.0, but later reintroduced in the new Tailwind form plugin.

For fallback reasons they were added to tall-theme.css

You may get class-name conflicts if:

  1. You have any of the class names in your current project

Solution: remove or alter the classes in tall-theme.css. (Search for "form-input" and you'll find them listed there.)

The tall-theme.css also contains:

  • all the Teal colors from Tailwind 1.x

  • shadow-xs class from Tailwind 1.x

PreviousTranslationsNextJavascript

Last updated 3 years ago

Was this helpful?

You activated in Tailwind form plugin

"Using classes instead of element selectors"