Skip to content
Snippets Groups Projects
Select Git revision
  • 3207286-remove-restrict-access
  • 7.x-1.x default
  • 8.x-1.x
  • 7.x-2.x
  • 6.x-1.x
  • master
  • 4.6.x-1.x
  • 4.7.x-1.x
  • 5.x-1.x
  • 5.x-2.x
  • 8.x-1.2
  • 7.x-1.3
  • 8.x-1.1
  • 7.x-1.2
  • 8.x-1.0-alpha1
  • 7.x-1.1
  • 7.x-1.0
  • 7.x-1.0-rc3
  • 7.x-2.0-alpha2
  • 7.x-2.0-alpha1
  • 7.x-1.0-rc2
  • 6.x-1.13
  • 7.x-1.0-rc1
  • 6.x-1.12
  • 5.x-2.15
  • 5.x-2.14
  • 6.x-1.11
  • 6.x-1.10
  • 6.x-1.9
  • 5.x-2.13
30 results

faq-3207286

  • Clone with SSH
  • Clone with HTTPS
  • Forked from project / faq
    Source project has a limited visibility.
    Oliver Davies's avatar
    Issue #3166799: Fix stylesheet name
    Oliver Davies authored
    c5b31c7a
    History
    DESCRIPTION
    -----------
    
    Tailwind CSS Starter Kit Theme for Drupal 7.
    
    USAGE
    -----
    
    ```
    mkdir -p sites/all/themes/custom
    cd sites/all/themes/custom
    git clone https://git.drupalcode.org/project/tailwindcss
    ```
    
    To re-compile the CSS:
    
    ```
    npm install
    npm run build
    ```
    
    DEPENDENCIES
    ------------
    
    - Laravel Mix (https://github.com/JeffreyWay/laravel-mix) for PostCSS compiling
      and asset generation.
    - The Laravel Mix Tailwind plugin.
    
    CONFIGURATION OVERRIDES
    -----------------------
    
    Overrides made to the default tailwind.js file:
    
    - `options.prefix` has been changed to `tw-`. This is so that some of
      Tailwind's default classes like `block` don't apply to Drupal's default
      markup.
    - `options.important` has been changed to `true`.
    
    OPTIMISING FOR PRODUCTION
    -------------------------
    
    The theme's `webpack.mix.js` file contains a section on adding PurgeCSS to the
    build to remove any unused classes and reduce the generated file size. As we
    want the generated CSS to be un-purged by default so people can experiment
    with the theme and Tailwind on sites like simplytest.me, this is commented out
    by default.
    
    Un-comment the lines to enable PurgeCSS, and any classes not added within the
    'templates' directory will be removed from the next production build.
    
    If you add any classes programmatically, such as within a preprocess function,
    it can be whitelisted using `whitelistPatterns` or `whitelistPatternsChildren`.