Skip to content

Custom theme #459

@loo41

Description

@loo41

$cursor-url: url(get-file-as-data-uri("../assets/cursor.png")) !default;

Describe the bug

When I try to use a custom theme

To Reproduce

// xx.scss
$primary-colors: (
  normal: red,
  hover: red,
  shadow: red,
) !default;

@import "nes.css/scss/nes.scss";

截屏2021-05-12 下午11 19 12

Expected behavior

When I remove this

截屏2021-05-12 下午11 20 41

Environment:

Suggestion(s) for fixing this issue
In my opinion, should we not rely on the JS transformation Base64, but use the transformation directly?,Is it possible to provide the ability to customize the theme。

Additional context
In the component library I'm developing, I'm trying to provide a set of custom themes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions