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.

Allow custom CSS import in `config.json` …

See original GitHub issue

It would be great to allow custom CSS import in config.json … this could be as easy as adding @import url("/custom.css"); to: https://github.com/matrix-org/matrix-react-sdk/blob/develop/res/themes/light-custom/css/_custom.scss

Maybe it’s even possible to use a css variable here, like: @import url("var(--custom-css-path)"); … or maybe via sass, like:

$custom-css-path: var(--custom-css-path);
@import url("{$custom-css-path}")

Think that’s the easiest solution to this, but I’m more than happy if anyone know an even more simple solution which would make it into master very soon.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
foonesscommented, Apr 14, 2020

@jryans What’s your handle on Matrix, also @jryans? Didn’t find someone with that handle, yet …

Read more comments on GitHub >

github_iconTop Results From Across the Web

import - CSS: Cascading Style Sheets - MDN Web Docs
The @import CSS at-rule is used to import style rules from other valid stylesheets. An @import rule must be defined at the top...
Read more >
Import JSON config file into styles.css
I have an Angular solution, and I would like to import a config.json file into the "styles.css" file. I don't even know if...
Read more >
Building Consistency with CSS Custom Properties & JSON
The plugin imports the JSON file and converts the data into CSS custom properties. Let's look at a basic use-case example.
Read more >
css-loader | webpack - JS.ORG
The option importLoaders allows you to configure how many loaders before css-loader should be applied to @import ed resources and CSS modules/ICSS imports....
Read more >
PostCSS plugin to inline @import rules content
PostCSS plugin to transform @import rules by inlining content. This plugin can consume local files, node modules or web_modules. To resolve path of...
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