Create individual SDDS component css files from scss files

Created on 6 August 2024, 5 months ago
Updated 12 September 2024, 3 months ago

Problem/Motivation

UI Kit is meant to be tech agnostic. For performance, it currently bundles all css styles together into one.

SDC expects component styles to live within the component directory.

Steps to reproduce

Proposed resolution

We have some options. For sake of time for Barcelona, we may need to go with option 2.

  1. Hacky: create a .css file that includes the global .css file
  2. Less hacky: add comments in each .scss file to mark beginning and end of file and create a parser that pulls out all the individual .css files based on the comments
  3. Proper: Restructure build rules so the component css is created in the directory and the global file can include all of these

Remaining tasks

  • Choose approach
  • Implement
  • Review and test
  • Commit :)

User interface changes

Components will have their self-contained css files so might show up better (i.e. styled) compared if when they don't. TBD

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024