base rio setup

This commit is contained in:
David Rodenkirchen
2024-05-24 06:13:41 +02:00
parent be5b9183bb
commit e57d47e38f
5 changed files with 72 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
from __future__ import annotations
from pathlib import Path
from typing import * # type: ignore
import rio
from . import pages
from . import components as comps
# Define a theme for Rio to use.
#
# You can modify the colors here to adapt the appearance of your app or website.
# The most important parameters are listed, but more are available! You can find
# them all in the docs
#
# https://rio.dev/docs/api/theme
theme = rio.Theme.from_colors(
primary_color=rio.Color.from_hex("01dffdff"),
secondary_color=rio.Color.from_hex("0083ffff"),
light=True,
)
# Create the Rio app
app = rio.App(
name='ezgg-website',
pages=[
rio.Page(
name="Home",
page_url='',
build=pages.SamplePage,
),
],
theme=theme,
assets_dir=Path(__file__).parent / "assets",
)