All Projects β†’ windicss β†’ windicss-analysis

windicss / windicss-analysis

Licence: MIT license
πŸ” A visual analyzer for Windi CSS

Programming Languages

typescript
32286 projects
Vue
7211 projects
CSS
56736 projects

Projects that are alternatives of or similar to windicss-analysis

ui-kit
D2iQ UI Kit
Stars: ✭ 29 (-75.83%)
Mutual labels:  design-system
orfium-ictinus
This repo will include the building blocks to create the Orfium Parthenons to come ...
Stars: ✭ 20 (-83.33%)
Mutual labels:  design-system
designs
Blockstack designs
Stars: ✭ 26 (-78.33%)
Mutual labels:  design-system
ray
Resources for building interfaces with WeWork's design system
Stars: ✭ 55 (-54.17%)
Mutual labels:  design-system
fuck-design
ε›žε½’ζœ¬θ΄¨οΌŒθΏ”η’žε½’ηœŸοΌ
Stars: ✭ 70 (-41.67%)
Mutual labels:  design-system
nextjs-components
A collection of React components, transcribed from https://vercel.com/design.
Stars: ✭ 92 (-23.33%)
Mutual labels:  design-system
design-system
Nulogy Design System
Stars: ✭ 61 (-49.17%)
Mutual labels:  design-system
playbook
Playbook Design System
Stars: ✭ 17 (-85.83%)
Mutual labels:  design-system
mint-ui
Design System | React UI components for web
Stars: ✭ 17 (-85.83%)
Mutual labels:  design-system
design-system
thoughtbot design system (tbds)
Stars: ✭ 49 (-59.17%)
Mutual labels:  design-system
hubble-scripts
πŸ”­ πŸ“œ Transform Sketch config data & assets into dev-friendly formats.
Stars: ✭ 23 (-80.83%)
Mutual labels:  design-system
flvAnalyser
FLV v1.0 analyser
Stars: ✭ 76 (-36.67%)
Mutual labels:  analyzer
react-native-theme
🎨 Build consistent, themeable React Native apps
Stars: ✭ 27 (-77.5%)
Mutual labels:  design-system
big-design
Design system that powers the BigCommerce ecosystem.
Stars: ✭ 35 (-70.83%)
Mutual labels:  design-system
uikit
uikit.consta.design
Stars: ✭ 181 (+50.83%)
Mutual labels:  design-system
GEL
The Design System and supporting website for Westpac GEL
Stars: ✭ 23 (-80.83%)
Mutual labels:  design-system
design-system
Strapi.io's design system πŸš€
Stars: ✭ 262 (+118.33%)
Mutual labels:  design-system
re-cite
Manage citations from your colleagues , friends, movies, your cat or even yourself.
Stars: ✭ 20 (-83.33%)
Mutual labels:  design-system
sugui
UI Components library based on React, Styled Components and React Testing Library
Stars: ✭ 17 (-85.83%)
Mutual labels:  design-system
lindera
A morphological analysis library.
Stars: ✭ 226 (+88.33%)
Mutual labels:  analyzer

Windi Analysis

An analyser tool for Windi CSS. Browse your utilities usages, have an overview of your design system, identify "bad practices", and more!

Get Started

Run the following command under your project root

npx windicss-analysis

The analysis report will be available at http://localhost:8113/

NPM

Or you can install locally to reuse the same version of your local windicss module

npm i -D windicss-analysis
// package.json
{
  "scripts": {
    "analysis": "windicss-analysis"
  }
}

VS Code Extension

From v0.8.0 of Windi CSS Intellisense, it has this analyser built-in.

  • Open a project using Windi CSS in VS Code
  • Open the Command Palette (β‡§βŒ˜P / Ctrl+Shift+P)
  • Run command: Windi CSS: Run & Open Analysis
  • See Analyser in the second editor column

Online Preview

You can have a preview the analysing report of the analyser itself

analysis-demo.windicss.org

You can genreate your own report and host it statically by running the following command

npx windicss-analysis --html dist

FAQ

It does not detecting my files

You will need to configure the extract.include options in windi.config.js instead of your framework's configurations file so it can be understood by the analyzer so as other intergations support. For example

// windi.config.js
import { defineConfig } from 'windicss/helpers'
import colors from 'windicss/colors'

export default defineConfig({
  extract: {
    include: [
      'src/**/*.{vue,jsx,tsx,svelte}',
      'shared/**/*.{vue,ts}',
    ],
  },
})

Can I use the report for other tools?

Yes. You can get the raw json file via the CLI

npx windicss-analysis --json report.json

and process it as you need.

You can also have type support for it via:

import type { AnalysisReport } from 'windicss-analysis'
import rawReport from './report.json'

const report = rawReport as AnalysisReport

Programmatic Use?

Yes. Just like a normal Node package:

import { startServer } from 'windicss-analysis'

startServer({ /*...* / })

Check out the type decrations for more APIs avaliable.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].