Member-only story

Vue3 Development Solutions(Ⅰ)

Shawn Kang
14 min readFeb 5, 2024

Vue series of articles

1. Customized, high-availability front-end style processing solution

Pain points in CSS processing under enterprise-level projects:

  • Unified variables are difficult to maintain
  • Lots of className overhead
  • The writing burden caused by the separation of HTML and CSS
  • Responsive, theme switching is complex to implement

For more pain points, see CSS Utility Classes and “Separation of Concerns

In response to the above problems, we can solve it through tailwindcss. Let’s look at its specific usage below.

Installation

yarn add tailwindcss postcss autoprefixer -D

Initializes the tailwindcss.config.js configuration file and also creates the postcss.config.js file.

// -p This represents creating a basic configuration file.
npx tailwindcss init -p
// tailwindcss.config.js
/** @type…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Shawn Kang
Shawn Kang

Written by Shawn Kang

Focusing on front-end development and internet writing. Sharing technical tutorials and original fiction. https://skstory.online/

No responses yet

Write a response