rogden / tailwind-config-viewer

A local UI tool for visualizing your Tailwind CSS configuration file.
2.01k stars 111 forks source link

When fontWeights are defined the class names and values are not shown #67

Closed JoA-MoS closed 2 years ago

JoA-MoS commented 2 years ago

When defining custom font weights the class names and values are not shown

image

repro steps:

  1. create new tailwinds library
  2. update font weight property with something like
    fontWeight: {
    regular: 400,
    medium: 500,
    semibold: 600,
    bold: 700,
    };
  3. run config viewer
hacknug commented 2 years ago

@JoA-MoS just opened a PR with a fix for this.

@rogden left some comments on the PR with an alternative fix and some potential issues I see with the way this currently works. Not familiar with the codebase so I'm not sure those would 100% apply or not.