Search

style() | Beginner’s Guide to Notion Formula

post type
notion
formula
tutorial
status
published
author
created time
2024/03/14 13:50
description
This blog post provides a deeper insight into the Notion formula style(). The post explains how the formula works, including the parameters and formatting options available.
cover image
Frame 13.png
1 more property

This is your sign to try out style()

The style() is a new addition that came with Notion's Formula 2.0 update. You can access it if you're using Notion version 3.0. In this blog, we will explore the Notion formula style(). This formula is a versatile tool that adds styles and colors to your text, providing you with complete control over how your text appears.

Summary

Name
Syntax
Description
Example
style()
style(value, style_1, style_2, …., style_n)
Adds styles and colors to the text in the database. Valid formatting styles: "b" (bold), "u" (underline), "i" (italics), "c" (code), or "s" (strikethrough). Valid colors: "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", and "red". Add "_background" to colors to set background colors.
style("Notion", "b", "u") = Notion style("Notion", "blue") = Notion

style() Formula

How style() works

The style() adds styles and colors to the text in the database.
The syntax for style() is as follows:
style(value, style_1, style_2, …., style_n)
Notion Formula
복사
Break it down
value: The value (literals or property( to which you want to apply the style.
style_1, style_2, …: the style formatting options you can apply.
The following are the style formatting options you can apply.
Formatting Style
Output
"b"
Bold text
"u"
Underlined text
"i"
Italic text
"c"
Code text
"s"
Strikethrough text
Formatting Style
Output
"gray"
Gray text
"brown"
Brown text
"orange"
Orange text
"yellow"
Yellow text
"green"
Green text
"blue"
Blue text
"purple"
Purple text
"pink"
Pink text
"red"
Red text
"color_background"
Background color (replace 'color' with any valid color name in the above options)

Example of style()

Search
example
description
formula
results
Applying style green text colour and strike-through.
style("notionwithro", "green", "s")
notionwithro
Applying style bold, blue text color, and red background.
style("notionwithro", "b", "blue", "red_background")
notionwithro
Applying style italic and purple.
style("notionwithro", "i", "purple")
notionwithro
Applying style yellow, code, and red background.
style("notionwithro", "yellow", "c", "red_background")
notionwithro

Conclusion

Thank you for reading this tutorial! If you found it helpful, be sure to check out shop for my beautiful templates, which I am confident enough to say are a game-changer Subscribe to my newsletter and feel free to follow me on my social media for updates!
Happy Notion(ing)!
Search