Giter Club home page Giter Club logo

nuxt-ant-tailwind's Introduction

Nuxt Ant Design

Nuxt Ant Tailwind

Nuxt Ant Tailwind is an experimental Nuxt project that uses Ant Design components for structure and Tailwindcss for style.

How to overwrite Ant Design Vue component styles

Navigate to an Ant Design Component's CSS file by navigating this path. node_modules/ant-design-vue/lib/[component]/style/index.css

For instance, to get to the Button Component's CSS file, navigate to. node_modules/ant-design-vue/lib/button/style/index.css

Copy the contents of the index.css file to a new file in the assets/css/components directory. In this file you can use Tailwind's @apply syntax to overwrite specific Ant Design Vue Component styles.

.ant-btn {
  @apply bg-blue-600;
}

Once you are finished with that, @import your new file into the _all.css file located in the assets/css/components directory.

@import './general/button.css';

As the development of Nuxt Ant Tailwind continues, these instructions will become less and less relevant because all of Ant Design Vue's components will already be @imported into the _all.css file located in the assets/css/components directory.

nuxt-ant-tailwind's People

Contributors

heyshadowsmith avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.