Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-28537

Implement dark/light theme architecture in rubin-style-dictionary

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We'd like to implement theming (namely, light and dark modes) in our design tokens (https://github.com/lsst-sqre/rubin-style-dictionary). How we generally do themeing in CSS with CSS custom properties that get overridden in a body.dark CSS selector (https://github.com/lsst-sqre/www_lsst_io/blob/61efefb702fabecbd4842182df6bb2390dee0835/src/components/globalStyles.js#L231).

      The purpose of this ticket is to figure out how to architect/organize themes in style-dictionary and export CSS variables such that the light theme is exported with either the :root or body selector and dark theme with a body.dark selector.

      For inspiration, see 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jsick Jonathan Sick
              Reporter:
              jsick Jonathan Sick
              Watchers:
              Jonathan Sick
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.