MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    missing custom.css file

    Scheduled Pinned Locked Moved Custom CSS
    19 Posts 6 Posters 6.3k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thedoorsfanaticT Offline
      thedoorsfanatic
      last edited by

      I am not an expert but I would name an empty text file to custom.css and put it in the css folder

      My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @thedoorsfanatic
        last edited by sdetweil

        @thedoorsfanatic right… to create the initial text file its

        touch ~/MagicMirror/css/custom.css
        

        then u can edit it…with your favorite editor

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by

          I just set up another laptop board. Used @sdetweil’s installer. Fantastic! Copied the main.css file and renamed it to custom.css. Done!

          Create a working config
          How to add modules

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Mykle1
            last edited by

            @Mykle1 but that is sorta heavy weight . cause now you are overriding every class defined in main.css…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @sdetweil
              last edited by

              @sdetweil

              Well, I emptied the body and deleted everything else. Did I forget to mention that? :-)

              Create a working config
              How to add modules

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Mykle1
                last edited by

                @Mykle1 yes… easier just to do the touch thing… create an empty file… (for users just starting out)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @sdetweil
                  last edited by

                  @sdetweil

                  Yes. if you know about the touch thing. I did not. Now I do.

                  Create a working config
                  How to add modules

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Mykle1
                    last edited by

                    @Mykle1 or just editing and use save as

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @sdetweil
                      last edited by

                      @sdetweil

                      Or, have a blank custom.css file added during installation. Easier for the users just starting out. ;-)

                      Create a working config
                      How to add modules

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Mykle1
                        last edited by

                        @Mykle1 true… easy peasy… done (in my script…)

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        Mykle1M 1 Reply Last reply Reply Quote 1
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer @sdetweil
                          last edited by

                          @sdetweil said in missing custom.css file:

                          true… easy peasy… done (in my script…)

                          What a great idea! ;-)

                          This is why you are the king! :thumbsup:

                          Create a working config
                          How to add modules

                          1 Reply Last reply Reply Quote 0
                          • BKeyportB Offline
                            BKeyport Module Developer
                            last edited by

                            FWIW, I wouldn’t put a “blank” custom.css…

                            I’d put at the top of main.css

                            /***********************
                            * Magic Mirror   
                            * Main CSS  
                            *
                            * Do not edit this file, make changes to custom.css instead. 
                            *
                            ***********************/
                            

                            and in custom.css

                            /***********************
                             * Magic Mirror     
                             * Custom CSS       
                             *                     
                             * Add your custom CSS here, for help, please go to http://forum.magicmirror.builders 
                             ***********************/

                            The "E" in "Javascript" stands for "Easy"

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @BKeyport
                              last edited by

                              @BKeyport main.css is owned by the project. Submit a pull request to update that.

                              The comment in custom.css does not add anything in my opinion.

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • BKeyportB Offline
                                BKeyport Module Developer
                                last edited by

                                I know that from a beginning user standpoint, having any user files point you to help would ease a lot of people. I’m just thinking of the person who heard of this project and decided to try it out because Pi’s are cheap, and it looked like a challenge (Me!) - I sure the heck didn’t know where I could get help at first, and have learned so much from here.

                                The "E" in "Javascript" stands for "Easy"

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mmmmh Project Sponsor
                                  last edited by

                                  Sorry for resurrecting this but I think an empty custom.css should be part of the default install. There are errors in the console log when it is missing.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @mmmmh
                                    last edited by

                                    @mmmmh if you use the automated installer, it will create an empty file

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mmmmh Project Sponsor @sdetweil
                                      last edited by

                                      @sdetweil Thanks for the hint. I installed it manually. I guess the assumption is if you know how to clone you also know how to touch. : )

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @mmmmh
                                        last edited by

                                        @mmmmh well, there is no damage if its not there, so, if you need it, you will create it…

                                        i agree with you it should be there… there are quite a few new users that are following some
                                        guide, and get to the ‘edit custom.css file’ step and its not there and they are lost. and don’t know what to do.

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        • 1 / 1
                                        • First post
                                          Last post
                                        Enjoying MagicMirror? Please consider a donation!
                                        MagicMirror created by Michael Teeuw.
                                        Forum managed by Sam, technical setup by Karsten.
                                        This forum is using NodeBB as its core | Contributors
                                        Contact | Privacy Policy