question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Themeable in formats

See original GitHub issue

We recently merged in #359 that adds a themeable flag on tokens that will have the !default flag in SCSS. We want to make this broadly applicable to other built-in formats for other platforms. If you have any ideas/thoughts please post them here.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
dbanksdesigncommented, May 7, 2021

I think adding a themable option to the formats that support it sounds like pretty good idea. It would be a pretty minor change. @chazzmoney thoughts?

1reaction
jacoblapworthcommented, May 12, 2021

I created a small transform to add a attribute to the platforms I needed.

import { Named, AttributeTransform } from 'style-dictionary'

export const themeable: Named<AttributeTransform> = {
  name: 'attribute/themeable',
  type: 'attribute',
  matcher: () => true,
  transformer: () => {
    return { themeable: true }
  },
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Themes | Format Help Articles
Which theme should you select? This video gives you some ideas of what to look for and the different types of themes we...
Read more >
Theme and Format Examples - Second Site
Generic Graphics Theme, Narrative Format: Second Site includes the Generic Graphics Theme so users can provide their own background images, ...
Read more >
Theme file format - HCL Product Documentation
Themes are defined in XML files using specific tags. ... The format for the theme XML file is outlined below. The <theme> root...
Read more >
Post Formats | Theme Developer Handbook
A Post Format is used by a theme for presenting posts in a certain format and style. The Post Formats feature provides a...
Read more >
Theme File Format - Win32 apps - Microsoft Learn
This document discusses the format of Theme (.theme) files. A .theme file is a .ini text file that is divided into sections, which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found