Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
cb2244c
Allow using the "default" Sublime Text UI font with `ui_font_default`
ticky Jul 14, 2017
227d1a3
Merge pull request #128 from ticky/default-ui-font
Jul 20, 2017
53a737b
Add 2.2.2 to messages
Jul 25, 2017
e32b1ee
Build 3127 Improvements (#113)
Sep 14, 2017
a2586cd
Update messages
Sep 14, 2017
1aa257c
Complete support for A File Icons
Sep 14, 2017
cc7df95
Add activation command
Sep 14, 2017
52305bb
Update messages
Sep 14, 2017
1e8fe70
Update readme with new screenshots
Sep 14, 2017
e00d349
Add note about A File Icon and option for native titlebar
Sep 14, 2017
0db9e65
Fix sticky code blocks
Sep 14, 2017
883d4ac
Update Gitgutter colors
Sep 15, 2017
2932c99
Update markdown colors
Sep 15, 2017
b073534
Fix typo (#140)
isaniomoraes Sep 16, 2017
82833c8
Colors (#145)
Sep 16, 2017
015b130
Fix italics
Sep 17, 2017
01d61ee
Fix readme
Sep 17, 2017
ef32ba0
Remove all redundant icons
Sep 17, 2017
03944b7
Add 3.1.2 messages
Sep 17, 2017
d14674d
Fix variables color
Sep 18, 2017
36225c3
Fix italic props for css
Sep 18, 2017
02a159d
Class methods colors for ruby
Sep 18, 2017
c7bd593
Sidebar indicator improved
Sep 18, 2017
a53913e
Restrict ruby variable defintion
Sep 18, 2017
daff2d9
Titlebar separator
Sep 19, 2017
52c11d2
Prepare 3.1.8
Sep 19, 2017
99fe878
Update screenshots
Sep 19, 2017
8258100
Fix icons distortion
Sep 21, 2017
5cfce84
Prepare 3.2.0
Sep 21, 2017
cf85aed
Colorful markdown
Sep 25, 2017
f2aeb07
Fix red invisibles
Oct 13, 2017
b9adc8e
UI (#159)
Dec 9, 2017
4a05068
Minimap colors
Dec 24, 2017
5e849a7
Fix bold font prop error
Dec 24, 2017
d6d766d
Update README.md (#189)
ninth-dev May 8, 2018
44f866b
Update yarn.lock
Nov 27, 2018
3de7cd2
Update scripts
dempfi Mar 22, 2019
b9bf80d
Added lineDiffModified key to the color schemes (#206)
sharunkumar Mar 23, 2019
7d530cc
v5.0.0 (#207)
dempfi Mar 23, 2019
ad40dfb
Fix colour blends for the light theme
dempfi Mar 24, 2019
f319ab2
Describe how to use custom UI fonts
dempfi Mar 24, 2019
700e206
Activation script
dempfi Mar 25, 2019
b033127
Feature/support new block caret (#211)
Mar 25, 2019
f39797e
Block caret release
dempfi Mar 25, 2019
c0570c3
Add link to the XCode port
dempfi Apr 3, 2019
54df71a
Fix typo in README. (#222)
ksho Aug 15, 2019
f48e4b9
Add kakoune port (#231)
Icantjuddle Jun 12, 2020
0d25a2b
Improve contrast
dempfi Jun 15, 2020
bdb3658
Sublime 4 (#251)
dempfi Sep 11, 2021
d0cd871
Change link for "A File Icon" (#244)
cprodhomme Sep 11, 2021
0811fb4
Fix win and autocompletion
dempfi Sep 13, 2021
91bc371
Fix titlebars again
dempfi Sep 18, 2021
0de7b7a
Replace hero image
dempfi Sep 22, 2021
30af2cc
String interpolation
dempfi Sep 22, 2021
279692f
Fix broken link (#260)
daggy1234 Sep 23, 2021
fb7ad70
Autocomplete popups and overlays rehaul
dempfi Sep 25, 2021
ba05173
mdpopup background fix
dempfi Sep 25, 2021
7628dd3
Add back switch panel icon
dempfi Sep 28, 2021
b8ba972
Sublime Text 2 interoperability
dempfi Sep 28, 2021
3b2a3a3
Update screenshots
dempfi Sep 30, 2021
f402ab7
Fix `ayu-kak` link (#268)
12beesinatrenchcoat Feb 25, 2022
7313b0e
Add type fix for source.zig storage.type (#270)
Manuzor Aug 10, 2022
1eb1ee4
fix a bug when doing lsp completions
zimya Apr 29, 2024
5a2fecd
delete background_color prop
zimya Apr 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file.
6 changes: 6 additions & 0 deletions Default.sublime-commands
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"caption": "ayu: Activate theme",
"command": "ayu_activate"
}
]
80 changes: 80 additions & 0 deletions Icons.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
"""
A File Icon Installer
"""

import os
import sublime

ICONS_PACKAGE = "A File Icon"
PKGCTRL_SETTINGS = "Package Control.sublime-settings"

THEME_NAME = os.path.splitext(
os.path.basename(os.path.dirname(__file__))
)[0]

MSG = """\
<div id="afi-installer">
<style>
#afi-installer {{
padding: 1rem;
line-height: 1.5;
}}
#afi-installer code {{
background-color: color(var(--background) blend(var(--foreground) 80%));
line-height: 1;
padding: 0.25rem;
}}
#afi-installer a {{
padding: 0;
margin: 0;
}}
</style>

{} requires <code>A File Icon</code> package for enhanced<br>support of
the file-specific icons.
<br><br>Would you like to install it?<br>
<br><a href="install">Install</a> <a href="cancel">Cancel</a>
</div>
""".format(THEME_NAME)


def is_installed():
pkgctrl_settings = sublime.load_settings(PKGCTRL_SETTINGS)

return ICONS_PACKAGE in set(pkgctrl_settings.get("installed_packages", []))


def on_navigate(href):
if href.startswith("install"):
install()
else:
hide()


def install():
print("Installing `{}` ...".format(ICONS_PACKAGE))
sublime.active_window().run_command(
"advanced_install_package", {"packages": ICONS_PACKAGE}
)
hide()


def hide():
sublime.active_window().active_view().hide_popup()


def plugin_loaded():
from package_control import events

if events.install(THEME_NAME) and not is_installed():
window = sublime.active_window()
view = window.active_view()
window.focus_view(view)
row = int(view.rowcol(view.visible_region().a)[0] + 1)
view.show_popup(
MSG,
location=view.text_point(row, 5),
max_width=800,
max_height=800,
on_navigate=on_navigate
)
10 changes: 10 additions & 0 deletions Preferences.sublime-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
// ayu theme: Use native titlebars on macOs
"ui_native_titlebar": false,

// ayu theme: Show separators between panels
"ui_separator": false,

// ayu theme: Display wider scrollbars
"ui_wide_scrollbars": false
}
163 changes: 110 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,99 +1,156 @@
![ayu](http://i.imgur.com/b3etBQX.png)
![ayu](./images/hero.png)

`ayu` is a simple theme with bright colors and comes in three versions — *dark*, *mirage* and *light* for all day long comfortable work.

# Font
> All screenshots use wonderful [Pragmata Pro](https://fsd.it/shop/fonts/pragmatapro/) font

`ayu` uses [__Roboto Mono__](https://www.google.com/fonts/specimen/Roboto+Mono) as main font and it's highly recommended to install it to get monospaced font in filetree. But if you don't have it then the UI theme will downgrade to standard UI font used in Sublime Text.
### File Icons

# Screenshots
`ayu` from version `3.0.0` supports customization via [A File Icon](https://github.com/SublimeText/AFileIcon) package. Please install it and restart Sublime for better experience.

Light with `ui_separator` option on
![Light with separators on](http://i.imgur.com/AJbChTB.png)
### Custom UI fonts

🎉**NEW**🎉 Mirage with `ui_separator` option off
![Mirage with separators off](http://i.imgur.com/3kkWv8k.png)
Since verion `5.0.0` monospaced fonts options were removed. But it's still possible to use your favourite font in the
user interface of the theme, just follow through these simple steps:

Dark with `ui_separator` option on
![Dark with separators on](http://i.imgur.com/bbH1K5O.png)
![ayu mono](./images/browse.png)

# Settings
1. Pull up command pallete via <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd>
2. Type in `Browse packages`
3. Navigate to the `/User` folder
4. Create a file named `ayu-mirage.sublime-theme` to modify mirage or `ayu-light.sublime-theme` and `ayu-dark.sublime-theme`
5. Open that file in Sublime
6. Copy and paste following content:
```json
[
{
"class": "sidebar_label",
"font.face": "PragmataPro Mono Liga"
},
{
"class": "sidebar_heading",
"font.face": "PragmataPro Mono Liga"
},
{
"class": "tab_label",
"font.face": "PragmataPro Mono Liga"
},
{
"class": "label_control",
"font.face": "PragmataPro Mono Liga"
},
{
"class": "quick_panel_label",
"font.face": "PragmataPro Mono Liga"
},
{
"class": "quick_panel_path_label",
"font.face": "PragmataPro Mono Liga"
}
]
```
7. Replace `PragmataPro Mono Liga` with the font of your choice
8. Save and enjoy :)

```json
### Screenshots

<h6 align='center'>Light with <code>ui_separator</code> option on</h6>

![Light](images/light-separator.png)

---


<h6 align='center'>Mirage with <code>ui_separator</code> option off</h6>

![Mirage](images/mirage-no-separator.png)

---

<h6 align='center'>Dark with <code>ui_separator</code> option on</h6>

![Dark](images/dark-separator.png)

### Settings

```js
"ui_native_titlebar": true, // use native titlebars on macOs
"ui_separator": true, // separators between panels
"ui_font_size_small": true, // smaller UI font size(sidebar, statusbar etc)
"ui_big_tabs": true, // increased tab height
"ui_fix_tab_labels": true, // to fix tab labels if they look not right
"ui_font_source_code_pro": true, // use [Source Code Pro](https://fonts.google.com/specimen/Source+Code+Pro) for UI
"ui_wide_scrollbars": true, // wider scrollbars
"ui_sidebar_highlight_row": true // to highlight whole row for current item in sidebar
"ui_wide_scrollbars": true, // wider scrollbars
```

# Installation
---

### Installation

###### Recommended

You can install `ayu` via [Package Control](https://packagecontrol.io/).

1. Press <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd> to open the command palette.
2. Type `install package` and press enter. Then search for `ayu`

# Manual installation
###### Manual

1. Download the [latest release](https://github.com/dempfi/ayu/releases/latest), extract and rename the directory to `ayu`.
2. Move the directory inside your sublime `/Packages` directory. *(Preferences > Browse packages...)*

# Activation
## Sublime Text 3
### Skins package
---

### Activation

###### Recommended

Open command palette via `Tools > Command Palette` (or <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd>) and type `ayu: Activate theme`.


###### With Skins package

[Skins](https://packagecontrol.io/packages/Skins) provides a simple and efficient way to change themes, save your own presets and quickly try out new looks. Activation is as simple as opening up the command palette, running `Select Skin` and choosing `Ayu - Dark` or `Ayu - Light` from the list.

### Normal way

###### Via Preferences

Add these lines to your user settings *Preferences > Setting - User*:

For light theme:
```json

```js
"theme": "ayu-light.sublime-theme",
"color_scheme": "Packages/ayu/ayu-light.tmTheme",
"color_scheme": "Packages/ayu/ayu-light.sublime-color-scheme",
```

For mirage theme:
```json

```js
"theme": "ayu-mirage.sublime-theme",
"color_scheme": "Packages/ayu/ayu-mirage.tmTheme",
"color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme",
```

For dark theme:
```json
"theme": "ayu-dark.sublime-theme",
"color_scheme": "Packages/ayu/ayu-dark.tmTheme",
```

## Sublime Text 2
Add this lines to your user settings *Preferences > Setting - User*:

_Sublime Text 2 version may have some glitches, if you notice something, please file an issue._

For light theme:
```json
"theme": "ayu-light2.sublime-theme",
"color_scheme": "Packages/ayu/ayu-light.tmTheme",
```js
"theme": "ayu-dark.sublime-theme",
"color_scheme": "Packages/ayu/ayu-dark.sublime-color-scheme",
```

For mirage theme:
```json
"theme": "ayu-mirage2.sublime-theme",
"color_scheme": "Packages/ayu/ayu-mirage.tmTheme",
```
### Sublime Text 3
ayu no longer supports Sublime Text 3. But you still can download
and install manually [latest supported version](https://github.com/dempfi/ayu/releases/tag/v5.1.0).

For dark theme:
```json
"theme": "ayu-dark2.sublime-theme",
"color_scheme": "Packages/ayu/ayu-dark.tmTheme",
```
### Sublime Text 2

**NOTE:** Restart Sublime Text after activation of the theme to avoid any glitches.
ayu no longer supports Sublime Text 2. But you still can download
and install manually [latest supported version](https://github.com/dempfi/ayu/releases/tag/3.2.2).

# Others
### Related projects and ports

- `ayu` for Ace: https://github.com/ayu-theme/ayu-ace
- `ayu` colors as NPM package: https://github.com/ayu-theme/ayu-colors
- `ayu` for VSCode: https://github.com/teabyii/vscode-ayu
- `ayu` for XCode: https://github.com/vburojevic/ayu-xcode-theme
- `ayu` for [Kakoune](https://github.com/mawww/kakoune): https://github.com/icantjuddle/ayu-kak

<div align="right"><sup>
made with ❤️ by <a href="https://github.com/dempfi">@dempfi</a>
</sup></div>
Loading