I do not want to create the entire theme from the scratch.
For example.
In the Styles tabs I change the color value in
.string.quoted.php { color: #8b8b8b; }
The changes are applied to the real example code so I can adjust color.
Now I wish to save this changes.
You can achieve this through your personal style sheet without creating or editing a theme.
Application: Open Your Style Sheet
.A file will open in Atom that looks similar to this:
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow {
// Add Your Styles Here
}
In the area between atom-text-editor::shadow {
(line 13) and the closing }
(line 15) add you changed styles:
.string.quoted.php { color: #8b8b8b; }
Save the Stylesheet and check it is working as expected in your editor, no need to reload or restart the editor.
Note: if you have the
Use Shadow DOM
check box unchecked in Atom Settings, accessed through Ctrl-,, then you will need to put your styles betweenatom-text-editor {
(line 7) and the closing}
(line 10). Try and work with Atom with the Shadow DOM enabled as the option to disable it will go away in future versions.
Here is a short animation to go through the steps I took to get this to work in Atom 1.8 Beta:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With