Before we start finding about it, let's spread the basics on the table. 
This is a 3D cutout diagram of a skin on our forearms. The magnitude of the actual size that is illustrated through this diagram is actually very small.
British Journal of Nursing - Anatomy and physiology of the skin - British  Journal of Nursing

We need to know what are the materials that make up our skin in terms of the fundamental elements and the chemical mixture of those elements that we see now as the outer covering or our body, the skin. Hair is made of 80% keratin which is a fibrous protein and the rest of them are lipids, water, trace minerals and melanin pigments (which gives color to hair). Before we continue reading, just know that everything made in nature is made of P&C of 4 main elements and along with it come other elements. The 4 main elements being Carbon, Oxygen, Nitrogen and Hydrogen. Let's have a table created for us.

Depth / layer

Main chemical composition

Representative percentages

Molecular formula / chemical identity

01. Skin surface

Sweat, sebum, shed keratinized cells, surface lipids

Variable mixture; no fixed overall %

H₂O, NaCl, keratin proteins, lipid molecules

02. Stratum corneum

Keratin-rich dead cells surrounded by barrier lipids

Extracellular lipid fraction: ~50% ceramides, 25% cholesterol, 15% free fatty acids; remaining ~10% other lipids

Cholesterol C₂₇H₄₆O; example fatty acid C₁₈H₃₆O₂

03. Stratum lucidum

Flattened, dead keratinocytes; eleidin-related protein material

No reliable universal percentage

Keratin/eleidin: proteins without one fixed molecular formula

04. Stratum granulosum

Keratin, profilaggrin/filaggrin, loricrin, involucrin, lipid granules

No standardized bulk percentage

Proteins, ceramides, cholesterol, phospholipids

05. Stratum spinosum

Living keratinocytes, cytokeratins, desmosomal proteins, cell membranes

No standardized bulk percentage

Keratin proteins, phospholipids, cholesterol

06. Stratum basale

Living keratinocytes, melanin, cellular proteins, nucleic acids

No universal bulk percentage

DNA, RNA, keratin, melanin polymers

07. Basement membrane zone

Collagen IV, collagen VII, laminins, proteoglycans

No universal fixed percentage

Protein and glycoprotein complexes

08. Papillary dermis

Water, collagen I/III, elastin, hyaluronic acid, proteoglycans

Varies by tissue region and hydration

Collagen proteins; hyaluronic acid (C₁₄H₂₁NO₁₁)ₙ

09. Reticular dermis

Densely packed collagen I, elastin, water, extracellular matrix

Collagen-rich, but no single reliable whole-layer %

Collagen triple helices, elastin polymers, H₂O

10. Hypodermis

Triglycerides, water, collagen, phospholipids, cellular proteins

Fat fraction highly variable by location and individual

Example triglyceride: triolein C₅₇H₁₀₄O₆


and to cover everything in the diagram, this table does it:

Structure

Location / layers involved

Main chemical composition

Percentage or formula

Hair shaft

Outside skin; passes through epidermis

Keratin proteins, water, melanin, lipids

Proteins 80–85%, water 10–13%, melanin 0–5%, lipids 1–6%

Cell loss from stratum corneum

Stratum corneum → environment

Shed corneocytes containing keratin, structural proteins and lipids

Variable; no single composition

Sensory nerve ending for touch

Lower epidermis and/or superficial dermis, depending on receptor

Cell-membrane lipids, proteins, intracellular water, ions

No universal %; Na⁺, K⁺, Ca²⁺ participate in signaling

Sweat pore

Skin surface, at the end of the duct

Keratinized epithelial boundary; sweat passes through

Sweat is roughly 99% water

Sweat duct

Dermis → epidermis → skin surface

Epithelial cells, proteins, membrane lipids; sweat inside

Sweat contains H₂O, Na⁺, Cl⁻, K⁺, urea and lactate

Sweat gland

Usually deep dermis; sometimes extends into subcutis

Secretory epithelial cells, water, proteins, lipids

Secretion ~99% water; remainder variable solutes

Sebaceous gland

Dermis; usually connected to a hair follicle

Lipid-producing cells and sebum

Representative sebum: triglycerides 31.3%, fatty acids 25.1%, wax esters 25.2%, squalene 13.6%, cholesterol esters 2.6%, cholesterol 2.2%

Hair follicle

Epidermal opening → dermis, sometimes hypodermis

Keratinocytes, keratin, collagen, lipids, melanin-producing cells

No universal overall %

Papilla of hair

Base of follicle, typically deep dermis or hypodermis

Fibroblasts, collagen, proteoglycans, blood capillaries

No universal %

Arrector pili muscle

Dermis, attached to follicle

Actin, myosin, water, cell-membrane lipids

No universal %; actin/myosin are proteins

Blood vessels

Dermis and hypodermis

Vessel-wall proteins; blood containing plasma and cells

Blood ~55% plasma and ~45% formed elements by volume

Lymph vessels

Dermis and hypodermis

Endothelial cells, collagen; lymph containing water, proteins and ions

No fixed %; composition varies

Nerve fibre

Dermis/hypodermis; branches extend toward epidermis

Axonal proteins, phospholipids, water, sometimes myelin

No fixed %; myelin is lipid-rich

Pacinian corpuscle

Deep dermis or hypodermis

Nerve terminal, concentric supporting-cell lamellae, collagen, extracellular fluid

No universal %

Epidermis (whole)

Stratum basale → surface

Keratinocytes, proteins, water, lipids, melanin

No single fixed composition

Dermis (whole)

Below basement membrane → above subcutis

Water, collagen, elastin, proteoglycans, living cells

Varies substantially with depth and tissue state

Subcutis / hypodermis

Beneath dermis

Adipocytes, triglycerides, collagen, water

Variable fat fraction


and to later help us with studying the reactions between the elements and our skin, lets have a summary table with all the important chemical structures in place:

Chemical

Formula

Where it is important

Water

H₂O

Every living layer, sweat, blood, lymph

Sodium chloride

NaCl

Sweat and extracellular fluids

Urea

CH₄N₂O

Sweat and skin's natural moisturizing factors

Lactic acid

C₃H₆O₃

Sweat and skin surface

Glycerol

C₃H₈O₃

Skin hydration, lipid metabolism

Cholesterol

C₂₇H₄₆O

Cell membranes and stratum corneum

Palmitic acid

C₁₆H₃₂O₂

Sebum, membrane and barrier lipids

Stearic acid

C₁₈H₃₆O₂

Barrier lipids and sebum

Squalene

C₃₀H₅₀

Sebum

Triolein

C₅₇H₁₀₄O₆

Example triglyceride in fat

Glucose

C₆H₁₂O₆

Cellular energy metabolism

Hyaluronic acid

(C₁₄H₂₁NO₁₁)ₙ

Dermal extracellular matrix

ATP

C₁₀H₁₆N₅O₁₃P₃

Energy transfer inside living cells



Now that we have this, lets later in the future solve a case on something simple as a facewash gel on skin or even shampoo on hair. The reaction between skin and the products happen at a very slow pace but deep down the graph of strain can be more like stress strain curve used to test strength of a material, except that this is on a longer timeline, that gives a window for us to even start finding out about the approximate time it takes for the side effects to hit.