Skip to content

Instantly share code, notes, and snippets.

@tomitrescak
Created May 19, 2016 07:58
Show Gist options
  • Save tomitrescak/8263df05da1876c7adce3f3d15ca97d8 to your computer and use it in GitHub Desktop.
Save tomitrescak/8263df05da1876c7adce3f3d15ca97d8 to your computer and use it in GitHub Desktop.
Atom font styles
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
/*
* Examples
* (To see them, uncomment and save)
*/
// 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 .cursor {
// border-color: red;
}
.container-icon { .fa; content: "\f0f2"}
.action-icon { .fa; content: "\f0e7"}
.component-icon { .fa; content: "\f12e"}
.routes-icon { .fa; content: "\f0e8"}
.publications-icon { .fa; content: "\f0c2"}
.collection-icon { .fa; content: "\f1b3"}
.video-icon { .fa; content: "\f03d"}
.test-icon { .fa; content: "\f046"}
@import "packages/file-icons/styles/colors"; // to use the colours
@import "packages/file-icons/styles/icons"; // to use the defined icons
@import "packages/file-icons/styles/items";
@{pane-tab-selector}, .icon-file-text {
&[data-name$="container.ts"] { .medium-red; } // Colours icon and filename
&[data-name$="container.ts"]:before { .container-icon!important; .medium-red!important; } // Colours icon only
&[data-name$="actions.ts"] { .medium-blue; } // Colours icon only
&[data-name$="actions.ts"]:before { .action-icon!important; .medium-blue!important; } // Colours icon only
&[data-name$="view.tsx"] { .medium-green; } // Colours icon only
&[data-name$="view.tsx"]:before { .component-icon!important; .medium-green!important; } // Colours icon only
&[data-name$="model.ts"]:before { .component-icon!important; .medium-yellow!important; } // Colours icon only
&[data-name$="model.ts"] { .medium-yellow; } // Colours icon only
&[data-name$="layout.tsx"] { .medium-green; } // Colours icon only
&[data-name$="layout.tsx"]:before { .component-icon!important; .medium-green!important; } // Colours icon only
&[data-name$="publications.ts"]:before { .publications-icon!important; } // Colours icon only
&[data-name$="collection.ts"]:before { .collection-icon!important; } // Colours icon only
&[data-name$="routes.tsx"] { .medium-yellow; } // Colours icon and filename
&[data-name$="routes.tsx"]:before { .routes-icon!important; .medium-yellow!important; } // Colours icon only
&[data-name$="stories.tsx"] { .medium-yellow; } // Colours icon and filename
&[data-name$="stories.tsx"]:before { .video-icon!important; .medium-yellow!important; } // Colours icon only
&[data-name$="test.ts"] { .medium-blue; } // Colours icon and filename
&[data-name$="test.ts"]:before { .test-icon!important; .medium-blue!important; } // Colours icon only
&[data-name$="test.tsx"] { .medium-blue; } // Colours icon and filename
&[data-name$="test.tsx"]:before { .test-icon!important; .medium-blue!important; } // Colours icon only
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment