|
|
[[!meta title="Colour your Emacs with ease"]]
[[!meta copyright="Copyright © 2024 Ryota Sawada"]]
[[!inline pages="internal(2024/info/color-nav)" raw="yes"]]
<!-- Initially generated with emacsconf-publish-talk-page and then left alone for manual editing -->
<!-- You can manually edit this file to update the abstract, add links, etc. --->
# Colour your Emacs with ease
Ryota Sawada (he/him) - Pronunciation: Ree-yo-tah, https://hachyderm.io/@rytswd https://x.com/rytswd
[[!inline pages="internal(2024/info/color-before)" raw="yes"]]
Emacs comes with various themes to pick from, and there are myriad
different themes out on the Internet. After choosing a theme, you can make
any adjustments to add or remove certain colours exactly as you wish. Emacs
provides you so much control over how you work, write, code, and everything
in between, including the colour choice. You are certainly left equipped
with all the controls for your theme as well.
However, when it comes to colour, there is a bit of difficulty: RGB.
Hexadecimal colour codes are ubiquitous and relatively easy to understand.
Yet, they are difficult to work with, especially when you need to make
different shades and variants. In recent years, CSS started to support not
just sRGB (standard RGB), but other colour spaces such as HSL, Oklab, etc.
With Emacs, we also have a great set of tools from color.el, as well as
this amazing package called ct.el (<https://github.com/neeasade/ct.el>)
In this talk, we will have a quick look at different colour spaces than
sRGB, namely HSL and LCH. We will check out how ct.el can make a set of
colour shades and variants at ease, and how they can help define themes.
Finally, Ryota will share his own theme called Hasliberg Theme, which is
using the full power of LCH.
Resources (will be public starting Dec 7):
- <https://codeberg.org/rytswd/emacsconf-2024>
- <https://github.com/rytswd/hasliberg-theme>
About the speaker:
Ryota started his Emacs journey more than a decade ago, but was forced to
put it aside for work requirements soon after. A few years ago, he made a
return to Emacs, and now is using Emacs almost exclusively for any sort of
coding tasks. This talk focuses on the modern Emacs setup where he thinks
his Emacs looks and works better than many other editors. He works for Civo
as a Principal Engineer.
# Discussion
## Questions and answers
- Q: Is there any intention to create a library for working with more experimental color spaces? Pulling code out of Hasliberg for this purpose, perhaps?
- A: Started the journey just for myself, and didn't think this
would be useful for others.
- A: Making it a library is definitely something that I can think
about.
- Q: Can we have a dark as well as light theme variations made from your theme?
- A: You can customize the code easily into dark, light and change
something based on someone's mood. Keep in mind that it is a
personal theme, so customize as you see fit.
## Notes
- Interesting idea to be inspired from tailwind and
frontend dev, thanks for talk
- [https://github.com/alphapapa/prism.el](https://github.com/alphapapa/prism.el)
has some interesting colour experiments as well
- i felt about same with the christmas tree colored
code editor
- annoyance is a great motivator for learning Emacs Lisp
- Yay fellow Dvorak user!
- [https://github.com/rytswd/hasliberg-theme](https://github.com/rytswd/hasliberg-theme)
- Thank you everyone for tuning in! Also my slides are
available at
[https://codeberg.org/rytswd/emacsconf-2024](https://codeberg.org/rytswd/emacsconf-2024)
- Contributing these developments back to ct.el sounds like a really fantastic idea, and I would really love to see it 🙂 I would love to start writing my own themes using this strategy
- hasliberg-theme-use-dark-nature-colour-palette (and a dark-red variant) is going to be useful for dynamically switching in as I'm working with remote systems e.g. staging and production systems
- i like that type of usage scenario
- Fellow orange fan here btw ;)
- Ryota must have used those old skool CRT terminals that had orange as their primary colour for orange to be his favourite colour :)
- bernstein color we used to say in German for that type of CRT orange
- haven't used it myself, but remembering this retro terminal project, which features some nice looking oldschool term/color schemes :) https://github.com/Swordfish90/cool-retro-term
- rytswd: Thanks for the support everyone! Now the world knows I'm an orange person ;)
- Great talk! Thank you 🙂
- Excellent talk, thanks!
- Beautiful theme
- Thanks :)
- Awesome job Ryota, thank you for sharing!
[[!inline pages="internal(2024/info/color-after)" raw="yes"]]
[[!inline pages="internal(2024/info/color-nav)" raw="yes"]]
|