Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Do not hardcode css #41

Open
Open

Description

@maciejmiklas

There is hardcoded css import:
import 'jsoneditor/dist/jsoneditor.css';

This makes any css customisation harder. Please remove this import so that we can import css of our choice.

Activity

  1. vaultec81 commented on Oct 10, 2020

    @vaultec81

    I agree! I have found a work around that seems to work for anyone wondering. Passing CSS through htmlElementProps seems to work. But it isn't the best solution obviously.

  2. PunKHS commented on Feb 19, 2021

    @PunKHS

    Maybe someone has workaround? I would like to change the .jsoneditor-menu { background-color: #4b4b4b } and cannot do it through htmlElementProps

  3. vaultec81 commented on Feb 19, 2021

    @vaultec81

    You might be able to go into the CSS code in the node_modules folder, or change the properties of the jsoneditor-menu class through javascript if that's possible.

  4. SeeThruHead commented on Mar 30, 2021

    @SeeThruHead

    can't import any css file in node_modules in next js

  5. SimonKlausLudwig commented on Apr 21, 2021

    @SimonKlausLudwig

    would be great, this adds a ton of css and makes lazy loading of the css really hard.

  6. NixBiks commented on May 6, 2021

    @NixBiks

    @SeeThruHead I have the same issue. Found a solution?

  7. SeeThruHead commented on May 6, 2021

    @SeeThruHead

    no we didn't use this because of the issue

  8. SimonKlausLudwig commented on Jun 11, 2021

    @SimonKlausLudwig

    It should be that hard to exclude the css file right ? Please take this into account..

  9. KirillSuhodolov commented on May 14, 2022

    @KirillSuhodolov

    is it possible to exclude css for next.js apps?

  10. anavgagneja commented on May 25, 2022

    @anavgagneja

    @SeeThruHead did you find an alternative you liked that works with next js?

  11. amiram commented on Jul 3, 2023

    @amiram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions