New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@felix-health/felix-app-tailwind-design-system

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@felix-health/felix-app-tailwind-design-system

Tailwind CSS plugin for Felix's design system

2.0.8
latest
Source
npm
Version published
Weekly downloads
206
-62.2%
Maintainers
0
Weekly downloads
 
Created
Source

Felix App Tailwind Design System

A TailwindCSS preset for our base styles and design tokens at Felix

Usage

If you don't already have a tailwind.config.js file in your project root, generate one with npx tailwindcss init

Run npm i @felix-health/felix-app-tailwind-design-system or yarn add @felix-health/felix-app-tailwind-design-system to install the preset in your project

Then add the preset to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  // ...
  presets: [require('@felix-health/felix-app-tailwind-design-system')],
};

This preset runs the tailwind config in JIT mode. This means that you must make sure to configure your purge option in your tailwind.config.js file with all of your template files so that JIT mode can know which files to scan:

module.exports = {
  // These paths are just examples, customize them to match your project structure
  purge: ['./public/**/*.html', './src/**/*.{js,jsx,ts,tsx,vue}'],
  // ...
  presets: [require('@felix-health/felix-app-tailwind-design-system')],
};

We also add the prefix of fx- to every class via the prefix key by default.

You can continue to add other configurations in your tailwind.config.js file for things like important, etc...

Tailwind Viewer

If you want a visual representation of what classes the preset by itself generates, we use tailwind-config-viewer.

run npm install and then npm run tailwind-config-viewer from the root of the project. This uses the sample tailwind.config.js file to generate the styles from the preset.

Publishing a new version

  • Ensure you bump the package version in package.json
  • Merge your changes into the master branch
  • Follow the steps here to create a new release. On publish, a github action will push the release to npm

Note*

To consume your changes in the vue-components repository: yarn add @felix-health/felix-app-tailwind-design-system@latest

Other notes

Learn more about TailwindCSS presets here: https://tailwindcss.com/docs/presets

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts