Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Styling Documentation #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions content/docs/styling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title = "Styling"
weight = 1
+++

# Introduction

`Iced` is a Rust GUI framework which targets a variety of platforms: `Web`, `Windows`, `MacOSX` and `Linux`. While each target has its own approach to rendering, the layout and styling model should be agnostic to the platform itself. `Iced`, being heavily influenced by the `Elm` language, incorporates many of the common patterns seen in HTML and CSS. This includes the declarative nature of HTML itself with the concept of `Element` and styling rules, some synonymous with CSS (e.g. `padding` and `background_color`). However, there are caveats. `CSS` is a standard that has evolved for over 24 years and it has adapted by making design decisions that are not necessarily consistent(I don't know how to say this nicely???). This page will discuss the `Iced` styling standard and how it differs from traditional `CSS`.